Posted by Allyn
2016-07-29

Tom, 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. I understand I will need to change a part of the code so that the user will be emailed the results of the form. If the type of hidden field I desire is created, will that user then receive the content of that hidden field once the form changes are made?

How do I add the hidden field to the form and if required, the database?
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,
<?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!