|inFORM v3||Admin Tool | Help Index | Getting Started | Settings Glossary | Anti-Spam Settings | Input Object Reference|
inFORM v3 allows you to customize the generated Missing Fields error page and the Thank You page by providing an HTML template file. The program will automatically insert the error or results information into the page in the location that you designate.
To use this new feature, you should first create an HTML page with the look that you want. Now you need to add an HTML comment in the code to tell inFORM where to insert the extra data. This comment must be:
<!-- INFORM-INSERT-CODE -->inFORM will insert its data on the next line following the comment, so be sure you do not have any following tags on the same line. inFORM must be able to find this comment somewhere in your page, or it will refuse to use the template file.
Place the page in AFS space, and make sure that the file can be read by the webservers by granting read permission to the www:servers.cgi PTS group. See the Getting Started Guide for help with setting AFS permissions.
Now you can use the inFORM Admin Tool to edit your form settings. Scroll down to the appropriate setting, Missing Fields Page or Thank You Page and give the full path to the template file that you created. Save your new settings, and use the sample form or your own form to test the template. (Note: You must provide the AFS file path, not the URL, to locate the template file.)
Missing Fields Page Example
The template file linked below is the default template used by inFORM v3 when a user does not provide data for all of the required fields. For this type of page, inFORM will add an unordered-list of the names of the fields that were not filled in. The sample file below shows how the page looks with the list inserted.
Thank You Page Example
The template file linked below is the default template used by inFORM v3 to tell the user that their submission has been accepted. For this type of page, inFORM will add a table of the fields that were submitted and their values. The sample file below shows how the page looks with the table inserted.