Posted by Steve
2014-03-17

Tom:

Thanks for the tip re: adding a hidden input. Actually, I'm creating a new field, not replicating or repurposing an existing field. Tried your suggestion, and all the fields seem to be in the right place, including in the admin backend, but the data from the hidden input is not recorded. I incorporated your steps to add a field ("Copying a Field"), i.e,:

- Added a new field in the database via phpMyAdmin. That's all set.
- Added the new field to web/codelib/asc/df.fl.form.inc.php
- Added the new field to web/staff/tpl.form.detail.inc.php
- I skipped adding the field to web/form/tpl.form.reg_page1.inc.php, since it's a hidden input on page 2 of the form, which should do the trick.
- Added the field to config.email.form.php (both locations, text and HTML format)

So as far as I can tell, this should work. But the data from the hidden input is not recorded in my new database field.

Any suggestions?

Thanks,

Steve
Posted by Tom
2014-03-18

Hi, the procedures you described are correct but then nobody's perfect, you could have made a typo. I recommend you do one at a time. First, add a regular text field and test it. After making sure that you can save data into the database through the newly created text field, proceed to converting it to a hidden field. If you do one at a time, it will be easier to figure out which task has been done right, adding a text field or converting it to hidden field.