Mar 25th, 2015, 2:42 PM
I've created my second custom field, but I've run into an issue.
It's a field I need to add values to with Javascript, it needs to appear on every page (hidden), and it needs to add to the existing data in the field if present.
Is there a read-made way to add a field to every tab?
Barring that, is there an easy way to find and get $field_info to add the field directly to the Form Page template in a custom Form Builder template? I can't find much documentation on how to access other properties of the form... from what's available, it looks like you only have ready access to the groups/fields assigned to that tab/page when it is called.
Alternately, in the Custom Fields "Save" script, is the a variable available with the data in the DB, if the field already held data? Or would I need to use what I get from POST to write a DB query for it? I could just write the input field to the template manually, and combine it with existing data when saving.
Thank you,
John
It's a field I need to add values to with Javascript, it needs to appear on every page (hidden), and it needs to add to the existing data in the field if present.
Is there a read-made way to add a field to every tab?
Barring that, is there an easy way to find and get $field_info to add the field directly to the Form Page template in a custom Form Builder template? I can't find much documentation on how to access other properties of the form... from what's available, it looks like you only have ready access to the groups/fields assigned to that tab/page when it is called.
Alternately, in the Custom Fields "Save" script, is the a variable available with the data in the DB, if the field already held data? Or would I need to use what I get from POST to write a DB query for it? I could just write the input field to the template manually, and combine it with existing data when saving.
Thank you,
John