What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Submit only when hit submit buttonAsked by SaraPiekarski on June 23, 2014 at 02:41 PM
I was filling out the app on line and accidentally hit enter and it submitted my unfinished app. Can you make it so the only way to submit it is to hit the submit button?
It is necessary that you download and edit the form's source code:
Now it is necessary that you paste only the green parts into your form's source code. The script part is inserted inside the <head> tag. The "onkeydown" needs to be added to all the fields where we wish to disable enter key:
<FORM id="FORM2" name="FORM2" method="GET" action="testSubmit.htm" style="background-color:lightblue"> <H3>Form2: Stops form submission when user presses ENTER key.</H3> <INPUT id="text2" name="text2" onkeydown="testForEnter();"> <INPUT type="submit" value="Submit">
You can test this form. Only the name field has this code associated, because it is important to keep the enter function on the comment box:
Let us know if we can be of assistance.