Skip navigation |

Display a different message based on submitted answers

When a visitor submits a form, you can display different text depending on the values that the user entered on the form.

Last updated: 04 January 2013, 10:53

If you have Radio Buttons, Dropdowns, or Checkbox Lists on your website, you can modify the Post Submission Text on your website to display different information based on what has been selected in the form.

To do this, you need to type the following in the Post Submission Text area:

{{question name:possible answer}}

You can also use

{{question name:[any]}}

and

{{question name:[none]}}

and

{{all}}

You can type the relevant content in between each of these options.

For example, if you have a question with the name colour and the parameters Red;Blue;Green, and a question with the name sport and the parameters 'Football;Tennis;Golf;Rugby', you could enter the following in the Post-Submission Text area:

Thank you for filling in our form! Here's some information based on the answers that you have given.

{{colour:[any]}}

Thank you for telling us about your favourite colour!

{{colour:Red}}

Click here for more information about red.

{{colour:Blue}}

Blue is our favourite colour too!

{{colour:Green}}

Click here to see some more information about green!

{{colour:[none]}}

It's a shame you didn't tell us about your favourite colour!

{{sport:[any]}}

Thank you for telling us about your favourite sport!

{{sport:Football}}

Click here for more information about Football.

{{sport:Golf}}

Click here for more information about Golf.

{{sport:Rugby}}

Click here for more information about Rugby.

{{sport:Tennis}}

Click here for more information about Tennis.

{{sport:[none]}}

You didn't tell us about your favourite sport.

{{all}}

Once again, thank you for using our form. This text will appear regardless of any of your answers.

Example