insighty / openesignforms

Automatically exported from code.google.com/p/openesignforms
0 stars 0 forks source link

Field does not substitute initial value when using tran or form data #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure field in document 
2. Set initial value = ${transaction:ESF_Request_RemoteAddr}
2. Save tran

What is the expected output? What do you see instead?
Form should show IP address as the initial value

Original issue reported on code.google.com by toni.yoz...@gmail.com on 9 Jun 2011 at 3:03

GoogleCodeExporter commented 8 years ago
Fixed in 1.2.1.

The initial value for a field is set at transaction creation time, so it really 
only makes sense to initialize from request fields (either the standard ones or 
fields in an initial HTTP GET/POST that starts the transaction).

The code created the transaction, then initialized it with the request, so the 
data was not there for the field initialization. Changed the transaction to 
pass in the HTTP request when it's created so that we can initialize the 
transaction data before the documents are created.

Original comment by yoz...@gmail.com on 9 Jun 2011 at 10:41