- ashtonAsked 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?
- JotForm SupportBJoannaAnswered on November 10, 2015 at 10:12 AM
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.
- ashtonAnswered on November 10, 2015 at 10:45 AMHow would I be able to set codes In bulk not one at a time
- JotForm SupportEltonCrisAnswered on November 10, 2015 at 01:38 PM
You can use Contains operator and enter the value separated by a comma.
Hope this helps!
- ashtonAnswered on November 10, 2015 at 02:45 PMThanks, and if i use contains operator how do i ensure each of those values
can only be used once?
- JotForm SupportMike_GAnswered on November 10, 2015 at 05:08 PM
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.