Display Random Messages on Thank You Page

  • Profile Image
    esupport.tw
    Asked on March 20, 2026 at 3:06 AM

    Hi 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:

    1. Is there a way to display random messages on the Thank You Page?
    2. Can this be done using Conditional Logic, or would we need to use custom HTML / JavaScript?
    3. 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,


  • Profile Image
    Lorenz JotForm Support
    Replied on March 20, 2026 at 3:33 AM

    Hi 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.

    Display Random Messages on Thank You Page Image 1 Screenshot 50

    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.

    Display Random Messages on Thank You Page Image 2 Screenshot 61

    4. Then, set up the condition to something like below:

    Display Random Messages on Thank You Page Image 3 Screenshot 72

    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: Display Random Messages on Thank You Page Image 4 Screenshot 83

    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.

  • Profile Image
    esupport.tw
    Replied on March 20, 2026 at 10:40 AM

    Hi,

    I’ve set some conditions on our form, but they don’t seem to be working as expected.

    Could you please advise?

    Thanks!

    Display Random Messages on Thank You Page Image 1 Screenshot 20



  • Profile Image
    Joeni JotForm Support
    Replied on March 20, 2026 at 11:00 AM

    Hi 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:

    Display Random Messages on Thank You Page Image 1 Screenshot 40Because 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:

    1. In Form Builder, select the Random Value Generator widget and click on the Wand icon.
    2. Then, delete the existing characters, manually input the 1 in the Character input box and click on the Update button.

    Display Random Messages on Thank You Page Image 2 Screenshot 51 Take a look at the screencast of the result below:

    Display Random Messages on Thank You Page Image 3 Screenshot 62 Give it a try and let us know if you have any other questions.