It's not related to being hidden. You need to check which array item field 88 is in your $form object. I added two fields to a form, and made the second one hidden. In the form object, it is
$form["fields"][1] not the field ID of 2. Here is how I set the default value for hidden field 2:
[php]
$form["fields"][1]["defaultValue"] = "Populated in my function";
Please dump the form object and find out what the array index is for field ID 88 and use that in your pre_render function.
Posted 11 years ago on Monday January 7, 2013 |
Permalink