If you have given record creation privileges to Web viewers, they can add a record to the database you publish on the Web. The New Record page contains input elements, which set up the fields for your Web audience to fill in and create a new record.
To build a New Record page:
For this tag |
Specify the following information |
---|---|
-Db |
The filename of the database your pages refer to. This is a hidden entry. |
-Lay |
The name of the layout being accessed to perform a new record action. This is a hidden entry. |
-Format |
The filename of the page that is returned as a confirmation that a record has been added. This is a hidden entry. |
-Error |
The filename of the page that is returned if an error occurs in processing the new record request. This is a hidden entry. |
-New |
Text on the button in the browser which is used by the audience to create a new record. |
You can add fields to the New Record page and choose the format for the fields as they will appear in the New Record page.
To use input elements from the FileMaker Form Library:
Drag this element to your page |
To use this format for the fields in a New Record page |
---|---|
Text field |
A text field form element. See Adding a text field for more information. |
Pop-up menu |
A pop-up menu or scrolling list form element.
|
Check box |
A check box form element. |
Radio buttons |
A radio button form element. |
Text area |
A text area form element. See Adding a text area for more information. |
Reset |
A button appearing in the browser. When clicked, this button resets all other input elements to their default values. See Adding a reset button. |
See also Using value lists from the FileMaker Pro database for information on using fields with FileMaker value lists in the New Record page.
You can have FileMaker Pro send an email message notification to an address that you specify whenever a record is added to the database.
To add an email notification or reply to a New Record page:
For this CDML tag |
Type the following as its parameter |
---|---|
-Mailto |
The email address of the recipient. |
-MailFrom |
The email address of the sender. |
-MailSub |
The subject of the email. |
-MailFormat |
The filename of the email format file. For example: email_format.txt. |
-MailHost |
The address of the SMTP server host. |
-MailCC (optional) |
The email address of the person who is carbon copied. |
-MailBCC (optional) |
The email address of the person who receives a a blind carbon copy. |
Note A FileMaker form area can support only one set of mail tags.
You can edit the email message later on (for example, to include field data). For information on how to do this, please see, Changing the text of the email message reply file.
Once you have set up the New Record page the way you want, you can save it. The name of the New Record page should correspond to the filename used in all files that refer to it. For example, the Index page might have filename "index.htm," and it may refer to the New Record page filename, "new_record.htm."