Using Double Entry Verification in Form Assembly
To create a verification field:
- Create two text fields next to each other in the form (generally labeled something like "XXXX" and "Verify XXXX").
- Save the form and exit your list of forms.
- Click your form, then click the "Publish" tab.
- At the bottom of the page, click the Show how to prefill form data dynamically link.
- Scroll down to the table in the "Parameter list" section. Locate the questions you wish to verify in the left column.
- In the "Field Name/Option Value" column, note the numbers (disregard the "tfa_") for the two fields you wish to compare.
- Return to the form and click Edit.
- In the form builder, go to Properties > Custom Code.
- Enter the following code (substituting in the numbers you noted in Step 6 for the "1" and "2" ):
<script type="text/javascript"> $(document).ready(function() { verifyFieldMatch(1,2) ; }); </script>
-
Click Apply, then click Save.
Note: If you wish to have multiple verification fields on the same form, add another verifyFieldMatch(#,#); underneath the existing one using the numbers associated with the appropriate fields).