This article shows you how to set up conditions so that you can have different confirmation messages displayed after a form has been submitted.
Let’s imagine that you have a contact form that your users can use to enter various kinds of details. When they get to the end, users can decide whether or not they want to download their data as a PDF document after submitting the form. They make this decision by making a simple choice between ‘Yes’ or ‘No’. An important point here is that the answer to this question must be a required field.
The download link should be displayed in the confirmation message directly after the form is submitted.
To find out how you can present your users with their input formatted into a PDF document, please see the article Providing PDF documents.
Create a confirmation message for the users who want to download their data after submitting the form. For details, see the article Setting up confirmation messages.
Place the mouse cursor at the required position in the text and click the PDF icon above the text field to insert the download link for the PDF document.
Create another confirmation message without the download link. This will be shown to users who do not want to download their data.
Once you have created both of the confirmation messages, you then use a condition to specify that the confirmation message without the download link will be shown when the question in the form is answered with ‘No’.
Since this means that the confirmation message with the download link will be shown automatically if ‘Yes’ is chosen as the answer, you do not need a second condition.
If your users pick No, then this confirmation message will be shown to them after form submission. Otherwise, the confirmation message with the download link will be shown.