The [General options] section of the settings file controls general options for the contact form.
The format of each setting in this section is
keyword = value
The following keywords are recognised:
Keyword | Purpose |
---|---|
Caption | the title shown at the top of the contact form |
FormId | id attribute for the HTML form tag, if required for any custom Javascript. Note that for CSS styling purposes, the form tag will always include class="twzContact" |
FormName | name attribute for the HTML form tag, if required for any custom Javascript |
Submit | text for the Submit button. If you want an image (instead of text) you could set this to and use CSS to set the button's border and background image. |
Reset | text for a form reset button, if required. If this setting is missing or empty, no reset button will be shown |
PreText* | text or HTML to precede the form (but not after successful submission) |
PostText* | text or HTML to follow the form (but not after successful submission) |
WebsiteMax | maximum number of web site addresses the visitor can submit in any field (anything with http://) |
FieldCase | Indicates how field names should be transformed for display. The possible options are as follows:
|
FieldTips | If you are using field tips, this option specifies how the tips are presented to the user. Possible options are: none|label|text
|
UploadDir | name of the directory to save files uploaded by the visitor (see file field-type in the Fields section) |
CalendarIcon | Pathname of the image the visitor clicks to open a popup calendar
(see calendar field-type in the Fields section).Several icons of various colours are supplied, or you can use your own image. The default is calendar/cal.gif |
CaptchaRefresh | If your visitor can't make out the letters in a captcha image
(see captcha field-type in the Fields section),
you can give them the opportunity to replace it with a new image. The possible values for this setting are:
|
LogFile | pathname to a file where a copy of each submission is stored. If this setting is not present, no log will be written. |
* The value for keywords PreText
and PostText
may be in the form file:pathname, in which case
the contents of the specified file will be used as the value.
[General options] Caption = Contact us Submit = Send request PreText = Please contact us by filling out our online booking form. FieldTips = text