How to Change Thank You Message Using Conditional Logic

  • 各務 康貴
    Asked on September 18, 2023 at 5:29 PM

    I understood that the thank you page can be sent out differently depending on the results of the responses.

    However, I think that on the first thank you page that is created, you can set up an action button or a form that it will take you to next, and you can set up a pre-fill for that form.

    Is it possible to set up an action button on the newly created thank you page to send out different forms depending on the results of the responses, or to have the information on the form that was filled out to pre-fill the form?

    Translated with (free version)

  • Andreas JotForm Support
    Replied on September 19, 2023 at 1:06 AM

    Hi 各務 康貴,

    Thanks for reaching out to Jotform Support. As I understand, you want to add an action button to a created Thank you page based on conditions. Unfortunately, this is not possible since action buttons aren't available for conditional Thank You pages. There is a workaround, but you need to manually edit the Thank You page source code. Let me show you how:

    First, you need to create a Thank You Page with action button you want to use for your conditional Thank You page.

    • Click on Settings in the top navigation bar and after on Thank You Page.
    • Select Action Buttons and set up the Button you wish to add.

    How to Change Thank You Message Using Conditional Logic Image 1 Screenshot 70

    • In the next step, you fill out your form and submit it to see the Thank You Page.

    How to Change Thank You Message Using Conditional Logic Image 2 Screenshot 81

    • Click now your right mouse and select Inspect.

    How to Change Thank You Message Using Conditional Logic Image 3 Screenshot 92

    • Select the Thank You Page Element.
    • Click Edit as HTML.
    • Copy the Code.

    How to Change Thank You Message Using Conditional Logic Image 4 Screenshot 103

    • Go now to Settings and click after on Conditions.
    • Select Change Thank You Page.
    • In the Condition select as DO Display a custom message...
    • In the Editor, click on Source Code, remove the existing code and paste the HTML code you copied before and click Save.

    How to Change Thank You Message Using Conditional Logic Image 5 Screenshot 114 In the Source Code you can also change the button text and form URL, but Prefill might not work since the button on the first Thank You page is connected to the Submission ID. You might use here a Prefill URL.

    Let me show you my result. The first Thank You page is when the name is filled and the conditional Thank You page when the name is empty.

    How to Change Thank You Message Using Conditional Logic Image 6 Screenshot 125 We also have a guide about How to Change Thank You Message Using Conditional Logic that you can check out.

    Give it a try and let us know how it goes.