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.
Checking if the (referral) code in textbox is OK or should not be acceptedAsked by asadhwani on February 12, 2015 at 06:29 AM
I would like to add a referral code field to my form. Basically a text box that validates a code. For example, I want to give a sales person a code that they share with their customers. The sales person customer (user) uses that code when they complete a submission. I want the system to validate the code and accept the code or tell the user that the code is invalid. Is that possible? The purpose is this will help me track how many orders came in as a result of this particular sales person.
That would be possible by matching the code through the conditions Ajay.
Now this would mean that you would need to add all codes in the conditions and then have them check if by some chance the code does not match any of them and if so, to show the warning.
In this case I would suggest one condition that is matching with AND rule and "Is not equal to" rule value option.
This would then check any number of the codes and if neither of them are equal to the one added in the text box, the error would be shown.
Useful thread: How to Find The OR operator in conditions?