Hitting ENTER on a form

  • Profile Image
    guelphlittletheatre
    Asked on August 25, 2012 at 08:35 AM

    Hi I'm having the problem of hitting ENTER and the form submits but I'm not at the end. I see there have been other threads on this. My is subtley different. It only happens if I click in a text box. See my form at http://form.jotform.ca/form/21698550663260  Go to the Honour section and click in a text box and hit enter. This seems to be the only time I'm seeing this problem right now.....thx

  • Profile Image
    liyam
    Answered on August 25, 2012 at 10:06 AM

    Hello.  When pressing enter while the cursor is on the textbox would submit the form by default.  Setting a field as required on the last part will restrict your form from submitting.

  • Profile Image
    guelphlittletheatre
    Answered on August 25, 2012 at 10:24 AM

    I've done the workaround but it means I've had to add a contrived question and make it Required.

    It seems to be an odd behaviour to hit ENTER in one situation and the form submits but not in others. Consistentency one way or the other would be a better appraoch in my opinion...

  • Profile Image
    liyam
    Answered on August 25, 2012 at 12:35 PM

    By default, this is what the text box does, pressing the enter key will make a submission, this is why it happens.  But let me forward this to the development team and see if they can find a solution for this.  Unfortunately, I cannot guarantee that a solution can be available anytime soon.  But once it is, we'll sure to let you know right away.

  • Profile Image
    aytekin
    Answered on August 27, 2012 at 05:08 AM

    This is actually a default browser behaviour. Many people expect the forms to be submitted when they click on enter button. We try to not change the default browser behaviours much. I believe we only disable it on multi-page forms to make sure the user does not submit the form without seeing the next page. 

  • Profile Image
    montsho
    Answered on November 09, 2012 at 04:14 AM

    Wow, I'm having the same issue. I've had random customers test out my form. It is a normal action for people to push enter after typing a password. When they type their password, whether it is right or wrong, they push the enter button. Then jotform submits the form NO MATTER WHAT. This defeats the purpose of a password box. Is there a work around for this?

    Frustrated as usual with your product but stuck with it until I find something better...

  • Profile Image
    jonathan
    Answered on November 09, 2012 at 08:40 AM

    @montsho

    Hi, as mentioned already, this is the current behaviour of the form. And I believe there is no intention to change this for now, -- for the reason that we wanted the application to coincide with how browsers behave.

    We apologize for any inconvinience this may have caused you. But a suggested workaround had been mentioned also -- that is making at least the last field a required one.

    Another one method, is by adding a checkbox that is also required.. like, put some context about agreeing to the content of the form by clicking on the checkbox. 

    With this workaround, even if the form user hit the enter keys, the form will not be submitted because of the required field prompt.

    Hope this help. Please inform us if you have further inquiry.

    Thanks.