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.

  • Profile Image

    Limit input to 3 attempts. ANSWERED

    Asked by AA_C on December 16, 2015 at 07:34 AM

    Is it possible to limit the number of attempts to 3 in one field so that another field cannot appear. On my formID=53297495897984, I have a field for "Membership Number". When a person enters a number my database verifies it. If it is ok then a field appears for Member Prices. If it is not valid then a different price list appears.


    I would like the "Members Price" list to be locked out after 3 failed attempts. Is this possible.  


    The form is embedded at our website so that I can use the database. See url below.



    Page URL:

  • Profile Image

    Answered by victor on December 16, 2015 at 09:10 AM

    If I understand correctly. You would like your user to enter their number and compare it to your database. If the user does not enter the correct number in three tries, this field will be disabled.

    This is not possible. You would require to export the source code and make the proper modifications to accomplish this.

    If you require assistance creating export and making the modification, please let us know we will be glad to assist.

  • Profile Image

    Answered by AA_C on December 16, 2015 at 09:34 AM

    Hello Victor

    If you mean the form would have to be at our site it is now.

    It is also connected to the database and verifying the member number.

    I have to admit that I'm not good at all at JavaScript. So the three try option and hiding the members option is definitely what I need help with. I use some of JF script to "Show" and "Hide" fields now but I need a bit more control. For example I don't want the members options pricing to appear unless the membership number is valid and I don't want any more then 3 attempts at it. Right now if the number is invalid the non-member options appears right away, that's not a bad thing I just want MORE PLEASE. 

    If you try the form by using the url provided and enter 32 it will show valid, if you enter 31 it will come up invalid and non-member pricing appears.

    Note: You will see a block where it requires last name and the number. Right now it just verifies the number, in time I want it to verify both and that requires using 3 different database tables. I'm am attempting to use PDO and medoo to do this.

    I would appreciate any help you can offer.




  • Profile Image

    Answered by AA_C on December 17, 2015 at 12:56 PM


    Perhaps I misunderstood but I thought you might offer some insight into doing this. 

    If this is not the case then thank you for what support you have given.


    Seasons Greetings,


  • Profile Image
    JotForm Support

    Answered by david on December 17, 2015 at 01:34 PM

    As far as I know, it is not possible to limit the number of times text is entered in a field.  Even with a custom script, they would still be able to modify a portion of the text repeatedly, rather than clearing all the text, to bypass a check for new entries.  It would be akin to trying to validate a username and password from the text box instead of through a log in action.  Log in attempts can be limited, whereas entering text into the fields can be done as much as you want.  There is no way to track what a failed attempt is versus a change in text.

  • Profile Image

    Answered by AA_C on December 17, 2015 at 02:11 PM

    Hello David,

    You make a very good point.

    But what if we limit the number of times the "Validate" button is pressed.

    So after pressing 3 times it disappears and then only the non-member pricing is available? 

    Could we also perhaps identify the ip and somehow allow it only 3 attempts no matter how many times they refresh the form? Reset after a day maybe?

    Any of this make any sense?


  • Profile Image
    JotForm Support

    Answered by david on December 17, 2015 at 02:15 PM

    What you are looking for would take quite a bit of additional coding outside of JotForm using the source code of your form.  For something like this, I would recommend hiring a developer.  We can assist you with anything in the program itself and occasionally smaller custom work, however, what you are looking is more than just a few lines.

  • Profile Image

    Answered by AA_C on December 17, 2015 at 02:21 PM

    OK, I appreciate what your saying. I will give it a go...Ho Ho. And talk to others.

    Much obliged. Robert