Setting up a confirmation message
Log in to add to favouritesA confirmation message is displayed when a user submits a form. You can choose to provide a simple thank you message or redirect the user to another page in your site.
Show confirmation message
When you create a form, a default confirmation message is provided. You can update and customise the message by following the steps below.
- With a form opened for editing, select the Confirmation message button from the form toolbar.
- The show confirmation message radio button will be selected.
- A simple message, Your form response has been received, is displayed. Update your message to include appropriate messaging and formatting. If you want to include data from the form submission, you can insert Liquid variables.
- Save the changes to your form.
Including form data in your notification
The notification message can include content that was submitted by the user of the form, either individual parts of the form, or your could include a summary of the data as a Form response table.
Using Liquid variables
You can use Liquid variables to output content such as a user's name {{ name }} or message {{ message }} by including the ID of the field wrapped in curly braces.
If you are unsure of the the field name, press the Show variables button to open a list of form fields with their Liquid variables displayed. Simply copy and paste them into your message.
Insert a Form response table
We've included a forward slash command in the editor to easily insert a table of each of the form fields and their liquid variable – start typing /form to insert the Form response table into the body of your message. If you have a multi-page form, a table will be added for each page, using the page name as the table caption.
Redirect to a Site View location
If you have a page in your site that you would like to redirect your users to once they have submitted a form, you can select a Site View node from the location picker. Choose the Redirect to Site View location radio button to set the location.
Redirect to a URL
If you prefer to redirect your users to an alternative URL that is not served by Site View, then you can choose the Redirect to URL radio button and enter a full URL.
Confirmation rules
You can use confirmation rules to display different messages, or redirect users to another page in your site based on the values provided in the form response. For example, with an enquiry form, you can set different messages to display depending on the enquiry type selected by the user.
- With a form opened for editing, select Confirmation message from the toolbar.
- Add a rule by either selecting Add rule if your rules are empty, or by pressing the Add button, as indicated by a plus icon, to add another rule.
- A rule is based on one or more conditions being met, based on a Field, Operator and Value selections. Using our enquiry form example, if a dropdown labelled Enquiry type was set to Project enquiry by a user populating a form, then we can create a condition that matches:
- Set Field to Enquiry type
- Set Operator to Equal to
- Set Value to Project enquiry by selecting the value from the list.
- If you want to add additional logic to the ruleset, press the Plus button next to your first condition. You can choose whether all conditions or any of the conditions must be met in order to trigger the rule by changing the value of the dropdown.
- The default confirmation message will be shown to any user whose form response fails to meet any of the conditions you have set. You can choose to provide a confirmation message, redirect to a Site View location or redirect to a URL outside of your site.
- Save and Publish the changes to your form.
Once you have set up your cornfirmation rules and customised your messages, be sure to thoroughly test the messages to ensure they are working as expected.