How to create an auto pop-up modal on a form

  • Profile Image
    Asked on April 19, 2019 at 04:56 PM

    I am comparing two dates if they are less than 30, I need to auto pop-up a modal with an error message. I have seen and implemented a pop-up modal when a user clicks on a button, but have not discovered how to automatically do this based on logic in my form.

    Thanks for any insights!!

  • Profile Image
    Answered on April 19, 2019 at 05:38 PM

    Hi @tskater!

    The user would still need to click on the button to display the pop up modal with the message. You can hide the button based on the calculation logic, and show it if two dates are less than 30, but I am not sure if that is what you are looking for. Another way would be to add a Text element with the error message, and display it based on the comparison.

    Guide: How-to-Add-a-Pop-Up-Modal-on-your-Form

    Guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Please let us know if you are working on something specific and we would be glad to help!

  • Profile Image
    Answered on April 20, 2019 at 07:53 AM

    Thanks. Sounds like for the time being, my best solution will be to "show" an error message in a text box right under the invalid input date. I have a lot of logic in my form and jotform works great. This is actually the only limitation I have found. Thanks for a great product!