In my form (to register the kilometres a car has driven on weekdays) I want to reuse the value that's entered in a number field on page 2 (monday) to be populated to a number field in page 3 (tuesday) (page 1 contains general information about the driver).
The value the car has ended with on monday must be the populated starting kiliometres for tuesday and so on for the rest of the week.
I have been reading several topics on this forum and thought I was nearby a solution with this http://www.gravityhelp.com/forums/topic/populate-field-from-previous-field
but I can't seem to understand the last part of the code mentioned:
// update this to the ID of the field whose value you wish to call
// '16.3' = example, first name of a Name field
// '16.6' = example, last name of a Name field
$field['defaultValue'] = rgpost('input_16_3');
in my form (i can't send a URL because of security) I have form id = 5, field that should be populated id=87 and field that contains the value i want to reuse=9
I also wonder if I need to change anything on the pagenumbering in my case (monday is page 2, tuesday is page 3).
Then last but not least. If I use this code, my pre-populated field with the user_name displayed is changed to empty...
Since the field is a number field I already have been thinking of a workaround since the field value I want to be populated is in a number field I could use the new calculation function on page 3 (just saying: use field 9 + zero). That works basically like expected, but the problem I face there is the thousand seperator that is bothering me. People filling out this form won't type their kilometres with a thousand seperator...
Hope somebody can help me out on either one of these two 'solutions'.