Prevent Submission on Enter

  • Profile Image
    Asked on June 30, 2016 at 02:24 PM

    Hello!  Sometimes I forget that pushing "Enter" will submit the form and then send it to a customer before I'm done filling it out.


    Is there a way to create an "Are You Sure You Want To Submit" dialog box before submitting?


    Or, is there a way to turn off "Submit On Enter?"


    I've currently just put a CAPTCHA on the form, so I can't submit it by accident until I've done that.

  • Profile Image
    Answered on June 30, 2016 at 04:11 PM

    The captcha would be one way to do it.

    Another way to do it would be to actually make some field right before the submit button as required. As such as long as it is empty you would not be able to submit the form.

    Once you fill it out however it would mean that everything has been added (since it is last before the submit button) so even if you did press enter at that time it would be OK.

    Hope this helps.