-
esupport.twHi Jotform Support,
We are currently using Jotform to build a museum inspection system, and we would like to enhance the Thank You Page experience for our volunteers.
After form submission, we want to display a random or rotating message (for example, a different appreciation sentence each time the form is submitted).
Example messages:
- “Thank you for your careful inspection.”
- “Great job today!”
- “Your effort helps keep the museum in excellent condition.”
Could you please advise:
- Is there a way to display random messages on the Thank You Page?
- Can this be done using Conditional Logic, or would we need to use custom HTML / JavaScript?
- If possible, could you provide a recommended method or example?
We would prefer a simple solution within Jotform, if available.
Thank you for your support!
Best regards,
-
Lorenz JotForm SupportHi there,
Thanks for reaching out to us for help. Displaying a random or rotating messages is possible using Random Value Generator widget, to randomly generate a single digit number, and conditions to display different thank you messages depending on the number the widget generated.
You will need to add a Random Value Generator widget first and set it to generate a single digit(0-9). Let me show you how to do it:
1. In Form Builder, in the left side of the page, click on Add Element button.
2. In the Form Element panel on the left, go to Widgets and add Random Value Generator.
3. In the Widget Settings on the right, set the following properties:
- Characters - 1
- Allowed Characters - numbers
- Hide - Yes
4. Finally, click on the Update button.
Next, you will need to create a Change Thank you page condition and set it to display different thank you message based on the random number that is generated. So if there are 0-9 possible number that can be generated, you'll need to prepare 10 different thank you message and create a condition for each number assigned to each message. Or, if you only have a few messages in mind, you can assign multiple numbers to one thank you message. Let me show you how to do it:
1. In Form Builder, in the orange navigation bar at the top, click on Settings.
2. In the menu on the left, click on Conditions.
3. Next, click on Add Conditions and choose Change Thank you page.
4. Then, set up the condition to something like below:
In my example above, I've set the condition to display Thank you for your submission message in the thank you page, if random value generated is greater than 0 but less than 3, basically pointing to value 1 or 2. Check out my result:
You can test my demo form here and clone it to your account, to further inspect how I set up the fields and conditions.
Give it a try and let us know if there's anything else we can help you with.
-
esupport.twHi,
I’ve set some conditions on our form, but they don’t seem to be working as expected.
Could you please advise?
Thanks!
-
Joeni JotForm SupportHi esupport.tw,
I checked your form and noticed that the character value is set to a negative number. Take a look at the screenshot below:
Because your custom Thank You Page conditions are set by position numbers, they won’t work as intended. To fix this, try setting the Random Value Generator widget to use 1 character instead of -1. Let me show you how:- In Form Builder, select the Random Value Generator widget and click on the Wand icon.
- Then, delete the existing characters, manually input the 1 in the Character input box and click on the Update button.
Take a look at the screencast of the result below: Give it a try and let us know if you have any other questions.
Because your custom Thank You Page conditions are set by position numbers, they won’t work as intended. To fix this, try setting the Random Value Generator widget to use 1 character instead of -1. Let me show you how: