Posted by Tom
2016-07-29
>I would like to add a hidden field containing an access code to be sent to the user of the form once the form is submitted
The first step to add a hidden field is the same as adding a regular text field. See this article:
http://www.phpkobo.com/form2db.php#copy_a_field
Now the question is how to convert a regular text field to a hidden field.
Open web/form/tpl.(table-name).reg_page1.inc.php and find the field you want to convert.
For example,
The first step to add a hidden field is the same as adding a regular text field. See this article:
http://www.phpkobo.com/form2db.php#copy_a_field
Now the question is how to convert a regular text field to a hidden field.
Open web/form/tpl.(table-name).reg_page1.inc.php and find the field you want to convert.
For example,
<?php echo $hm->Zb('rs:def:myfield'); ?>Replace it with a hidden field like
<input type='hidden' name='myfield' value='(the value you want to assign)'/>That's it!
→ Form2DB
How do I add the hidden field to the form and if required, the database?