JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
How can I check for a predeterminded code match?Asked by ultimatenortheast on July 17, 2014 at 04:20 PM
Suppose I want to put in a field where a user must put in a code they are given. If they don't match the codes I enter in the form (like 12345, or AC987, or something else) then the form won't be sent to me. I will obviously enter those codes somewhere while I create the form.
Thanks for your help.
Example below is called invite code (not sure what technology they use to create and validate the form.
In that case you could use conditional logic to show the submit button if the code entered matches. Once you create the form, you could add the Text Box field at the beginning of the form, so the whole form is displayed if the right code is entered, that can be accomplished following this guide "Hide or Show Multiple Fields at Once".
Another alternative would be adding the Text Box field before the submit button:
And setting the conditions this way:
Please try my example form here, the code to be entered is "123", let us know if you have more questions, we will be glad to assist you.
Hi Support Team,
is possible to input a sequence of codes to check?
If Enter Code field is Equal to any number between 100 and 999
then show Submit?
Thank you !
In that case, since your codes are numeric, you need to change your code field to Number field. You need to create a condition that will show allow submission only when code is greater than 99 AND lower than 1000. Please follow the steps below.
I modified my colleagues form and modified it a bit. Please see it here https://form.jotform.com/61613435768966