The [Message options] settings define the text of messages shown to the user (web site visitor).
The format each setting in this section is
keyword = message-string
The message-string may contain HTML tags (see examples below)
The following keywords are recognised. If you don't include the keyword in your settings file, its default will be used.
Keyword | Description | Default |
---|---|---|
FldMissing | text to display if the visitor misses a required field (- for none) | <b>%Field%</b> is missing. |
FldEmailBad | text to display if the visitor enters an invalid email address (- for none) | You did not enter a valid <b>%Field%</b>. |
FldTagFound | text to display if the visitor enters text containing HTML tags (- for none) | <b>%Field%</b>: we don't accept submissions containing markup tags. |
FldNumeric | text to display if the visitor enters something strange when it should be a number | <b>%Field%</b> must be a number. |
FldMin | text to display if the visitor enters a value too low (for field types number, integer, amount) | <b>%Field%</b> must be at least %Min%. |
FldMax | text to display if the visitor enters a value too high (for field types number, integer, amount) | <b>%Field%</b> can't be more than %Max%. |
FldBadType | text to display if the visitor uploads a file of an unacceptable type (as defined in a file's field options) | <b>%Field%</b>: uploaded file was an unacceptable type. |
FldBadDate | displayed if the visitor types an incorrect date (only for 'calendar' fields where NRO sub-option is present) | <b>%Field%</b> is not a valid date. |
FldCaptcha | displayed if the visitor enters an incorrect captcha code | <b>%Field%</b> was incorrect. |
MsgThanks | message to display to the visitor after the form is successfully submitted | Thanks - your message was successfully received. |
MsgMissing | (start of) message to display to the visitor if one or more fields were missing | Please check the form - the following fields had a problem: |
MsgError | message to display to the visitor if an error occurs when sending the email | Sorry, there was a technical problem with delivery of your message. <br /><br /> Please email your message to <a href="mailto:%ToAddress%">%ToAddress%</a> |
The Fld--
settings can contain this special placeholder:
FldMin
and FldMax
can also contain these special placeholders:
The MsgError
setting can contain the placeholder:
[Message Options] FldMissing = You need to supply <b>%Field%</b>. FldEmailBad = Please check the email address.
If you don't want to list all missing fields:
[Message Options] FldMissing = - FldEmailBad = - MsgMissing = Please check the highlighted fields and re-submit.