The message field is used to show a message on your form. It can be used to display helpful information to a user completing your form.
To learn how to add, edit, clone, move, resize, offset, or delete an HTML field, please click here.w
To edit the settings for this field type, click the settings icon on the field itself. Click the ‘Save & Close’ or ‘Save’ button to save your changes. If you do not want to save your changes, you can click the ‘Cancel’ button or click any other form element to close the field settings sidebar.
The basic tab contains settings that the majority of WS Form users will need to control a field. The settings are as follows:
The label is used solely for identifying the message field when editing your form. The label is not shown to the website visitor.
Select the type of message you would like to display. Each type of message is shown in a different color. The options are:
- Success (Green)
- Information (Blue)
- Warning (Yellow)
- Danger (Red)
Enter the text you want to show in your message.
Exclude From Emails
By default, WS Form uses the
#email_submission variable in email templates. This provides a simple way of displaying all of the submitted fields in emails. Sometimes there might be a need to exclude a field from an email, for example, you might want to not include some introductory copy on a form, or hide a field you’re using with conditional logic to show or hide an element.
To hide a field from emails, check this box.
Other WS Form add-ons may add exclusions in this section too, such as the WooCommerce add-on which allows you to exclude certain fields from the cart entries.
The advanced tab contains additional form attribute settings that provide further control over how a field is rendered.
Use the ‘Styles’ settings to change the design of the message field.
The vertical alignment option allows you to choose how this field will be vertically aligned in relation to fields in the same row. The options are:
For developers WS Form allows you to add your own classes to fields.
The wrapper CSS class setting enables you to add a class (or classes) to a field wrapper. Field wrappers are sections of HTML added around a field to position them on the page. To add multiple classes, add a space between the class names.
Choose from one of the options to filter which user status can see this field:
- Is Logged In
- Is Logged Out
- Has User Role or Capability
If you choose ‘Has User Role or Capability’, additional settings will appear that enable you to choose one or more roles or capabilities.
This setting is used to add custom attributes to the HTML of this field, such as
data-my-attribute="1234". You can add as many custom attributes as you need.
To add a custom attribute key-value pair:
- Click the ‘Add’ icon to add a custom attribute row.
- Enter the key in the left column.
- Enter the value in the right column.
- Click ‘Save’ to save the custom attributes.
The breakpoint settings define the width of a field and also what the offset (how many columns from the left-hand side of the form or the previous field) of a field is for each breakpoint. For more information about the breakpoint settings and capabilities of WS Form, click here.