How to prevent submit the form when user hits the return key.

  • CaitlinHicks
    Asked on April 19, 2016 at 3:19 AM
    Also, I noticed in testing that when I hit the return key it automatically submits the form. Is there someway to disable that? Users might hit return when they mean to navigate to the next question vs submitting the entire survey. 
  • Chriistian Jotform Support
    Replied on April 19, 2016 at 5:20 AM

    You can prevent the user from accidentally submitting the form when hitting the return key by setting all or most of the fields as required. That way, the form will only be submitted if all the fields have been filled.

    To set the field as required, please follow the steps below:

    1. Click the field

    2. Turn on Required button.

    How to prevent submit the form when user hits the return key Screenshot 20

    Here's a cloned version of your form so you can see it in action: https://form.jotform.com/61092427737964.

    If you need further assistance, please let us know.
    Regards.

     

  • CaitlinHicks
    Replied on April 19, 2016 at 12:40 PM

    Thanks for your answer. Unfortunately in this case, I do not want to require my customers to fill out every or even most of the measurement questions, as the ones I need vary customer to customer. 

    Is there an alternative way to turn off the return command submitting the form? 

     

    Thanks

  • BJoanna
    Replied on April 19, 2016 at 1:57 PM

    As an alternative, you can add page break to your form above submit button inside of Form Builder. This will prevent your users to submit the form when hitting the enter button and there will be only submit button on second page of your form.

    Inside of this guide , you can find how to add create multi page form: 

    http://www.jotform.com/help/119-How-to-Create-Multi-Page-Forms 

    Here is my demo form: https://form.jotform.com/61094919920966? 

    Hope this will help. Let us know if you need further assistance.