Hiya,
We're looking to create hidden fields in forms with static values ... just for internal tracking more than anything else, and to make some coding easier to do.
Now, I see in js.php, in the SetDefaultValues() JS function, switch() statement, the 'hidden' field goes something like this:
case "hidden" :
field.inputs = null;
if(!field.label)
field.label = "<?php _e("Hidden Field", "gravityforms"); ?>";
break;
I'm making an additional entry in the switch JS there, and trying to find a way to set the value of the hidden field while creating it. field.value and field.content do not work for this purpose, is there another attribute that would? Alternatively, is there another method that I could call this via javascript? I'm outputting my JS following the contents of js.php via the 'gform_editor_js' action hook.