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.
I need to validate codes given to client to allow form to be usedAsked by ashton on November 10, 2015 at 06:37 AM
Hi there, i give clients unique codes in store and would like to start the form by asking for this code, once the code is entered it needs to see if this code is valid and if valid allow user to continue with the form, each code can only be used once.
I there a way i can input a lot of these codes at once instead of 1 at a time in conditions? like can i use commas in conditions to allow multiple codes to be checked against?
Thank you for contacting us.
Yes it would be possible to set a code field and if code entered is valid to allow user to continue with the form.
It is also possible to add more then one code.
I have made demo form: https://form.jotform.com/53133914751958?
My condition to show/ hide fields looks like this.
Valid codes are 111,222,333 and 444.
You would also need to set form limits based on unique question so that each code can be used only once.
Hope this will help. Let us know if you need further assistance.
How would I be able to set codes In bulk not one at a time
You can use Contains operator and enter the value separated by a comma.
Hope this helps!
Thanks, and if i use contains operator how do i ensure each of those values
can only be used once?
Using "contains" allows you to set codes in bulk and will not affect the Limits-Based-on-a-Unique-Question.
The condition presented by my colleague, Elton, will control the way the other fields on the form is shown. If the code entered matches any of the values separated in a comma in the condition, then the hidden field on the form will show. On the other hand, the instruction presented by my colleague, BJoanna, allows you to control if the code was already used by previous submitters of your form. If a certain code was already used in the code field by a previous submitter, then the current submitter will not be allowed to submit the form if he will be using the same code that was already used. It will still show him(current submitter) the hidden fields because he has the right code, but he will not be able to submit the form because the code was already used on the code field before.
I hope this helps. Let us know if you have any other questions. Thank you.