Conditional Logic: How to show modal window based on the how many times a user has accessed the form?

  • imccauley
    Asked on June 27, 2025 at 11:59 AM

    Hello,


    I created a modal window to give my users instructions for my Jotform. Right now, users would have to click the window to open it, but I want it to open automatically. The caveat is, I only want the window to open automatically the first time my users are interacting with my form.


    I have a GetPageURL and short text widget to return a value of "1" for a user's initial use and "2" for subsequent use. Is there a way I can configure my modal window to open only if the short text widget has a value of "1"?


    Please let me know if this is possible or if you have any other methods you'd use to solve this problem.


    Thanks!

  • John JotForm Support
    Replied on June 27, 2025 at 12:39 PM

    Hi imccauley,

    Thanks for reaching out to Jotform Support. Currently, Jotform does not have a direct built-in feature to automatically open modal windows based on widget values automatically. As a workaround, you can use Conditional Logic to achieve this.

    When I checked your form, I can see that upon initial submission, the modal is automatically displayed because of the Show condition you have set up. Check out the screenshot below:

    Conditional Logic: How to show modal window based on the how many times a user has accessed the form? Image 1 Screenshot 30

    I submitted a test submission, and upon clicking the Edit Link on the Autoresponder Email, the modal window is hidden because of the condition set to only display the modal when the submission count is 1. When accessing the form via the Edit Link, the URL includes the word edit, which triggers another condition that sets the submission count to 2, preventing the modal from showing. Check out the screenshot below:

    Conditional Logic: How to show modal window based on the how many times a user has accessed the form? Image 2 Screenshot 41

    Could you confirm if this is what you're trying to do? If yes, then you can keep the current conditions as they are, since the setup already correctly controls when the modal window appears based on how many times a user has accessed the form.

    Let us know if there’s anything else we can help you with. 

  • imccauley
    Replied on July 1, 2025 at 12:57 PM

    Hello again,


    Thanks for your response. My issue isn't with the conditions--I think those are set up correctly to display the modal window--

    it's rather that I want the modal window to appear automatically as a pop-up that the user can click out of. Is this possible to achieve this with the modal window properties? Is there another way of displaying a pop-up window in the form that I could control with conditional logic?
  • John JotForm Support
    Replied on July 1, 2025 at 1:45 PM

    Hi imccauley,

    To avoid confusion, I moved your other question to a new thread and helped you with that here.

    Reach out again if there’s anything else we can help you with.