...
Option | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Label | The display name of the form field. | ||||||||||||||||||
Name | The name of the input field. This is the name of the value sent in all post and email notifications, and is also used when validating input rules.
| ||||||||||||||||||
Type | The type of form field.
| ||||||||||||||||||
Required | If enabled, will require that some value is given for the field. | ||||||||||||||||||
Encrypt | If enabled, will store input values encrypted in the database. | ||||||||||||||||||
Values | See Values Format. | ||||||||||||||||||
Input Rules | See Input Rules. | ||||||||||||||||||
Notifications | See Notifications. |
...
Option | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Label | The display name of the form field. | ||||||||||||||||||
Name | The name of the input field. This is the name of the value sent in all post and email notifications, and is also used when validating input rules.
| ||||||||||||||||||
Type | The type of form field.
| ||||||||||||||||||
Required | If enabled, will require that some value is given for the field. | ||||||||||||||||||
Encrypt | If enabled, will store input values encrypted in the database. | ||||||||||||||||||
Values | See Values Format. | ||||||||||||||||||
Input Rules | See Input Rules. | ||||||||||||||||||
Notifications | See Notifications. |
...
Code Block | ||
---|---|---|
| ||
{ "hostname":{ "valid":{ "rule":"isEmpty", "negate":true, "message":"Hostname must not be empty." } }, "password":{ "valid":{ "rule":["matches", "/^[a-z0-9\\$\\%\\^]{10,20}$/i"], "message":"Please enter a password using alphanumeric characters between 10 and 20 characters in length. You may also include special characters like '$%^'." } } } |
In the above example we're validating the hostname field using the isEmpty rule and negating it using the negate attribute. This ensures that the hostname field is not empty when submitted. If the rule validation fails (hostname is empty) the message we defined using the message attribute will be displayed to the user. We are also validating the password field at the same time using the matches rule, which evaluates a given regular expression. This rule requires that the password contain between 10 and 20 characters, inclusive, all of which must be characters of any combination from A through Z, upper or lower case, and the digits 0 through 9.
...
Option | Description | ||||||
---|---|---|---|---|---|---|---|
Notice | The action triggers the notification.
| ||||||
Post URL/Email | The URL to post to, or the email address to email, when the notice is triggered | ||||||
HTTP Code | The HTTP Response Code returned by the URL that signifies a successful transmission. | ||||||
Response Contains | Some portion of the output returned by the URL that signifies a successful transmission. This can be used separately, or in conjunction with the HTTP Code for more refined control over successful responses. | ||||||
From Email | The address to send email notifications from. | ||||||
Subject | The subject of the email notification. | ||||||
HTML/Text | The HTML and Text body content for the email notification. |
...
Option | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Notice | The action triggers the notification.
| ||||||||||||||||
Post URL/Email | The URL to post to, or the email address to email, when the notice is triggered | ||||||||||||||||
HTTP Code | The HTTP Response Code returned by the URL that signifies a successful transmission. | ||||||||||||||||
Response Contains | Some portion of the output returned by the URL that signifies a successful transmission. This can be used separately, or in conjunction with the HTTP Code for more refined control over successful responses. | ||||||||||||||||
From Email | The address to send email notifications from. | ||||||||||||||||
Subject | The subject of the email notification. | ||||||||||||||||
HTML/Text | The HTML and Text body content for the email notification. |
...