-
EcoservAsked on January 2, 2018 at 11:28 AM
Hello,
Is there a way that I can have a numbers field that verifies the numbers input in the first field with the numbers in the second field and keeps the pattern of the numbers in the same for each field?
For example, for a Social Security Number the first and second field would look like
(XXX-XX-XXXX) and the numbers would have to match in order to move forward with the form.
If you can give me any advice or feedback on how I might go about this, please let me know.
Thank you, Happy New Year!
-
aubreybourkeReplied on January 2, 2018 at 12:28 PM
I believe what you are looking for is an input mask
Getting-Started-with-the-Basics-of-Input-Masking
So you would need two of these and then one condition that checks if they are equal. If not display an error message.
For example:
You can see a working demo of this here:
https://form.jotform.com/80014580736958
-
EcoservReplied on January 2, 2018 at 4:29 PM
Hi Aubrey,
We've tried it this way, but we were hoping to find a solution where the feature doesn't rely on the user to input the correct information in both fields. If they ignore the message, they're still able to send in the form.
Additionally, we were hoping to find a feature that would only have 1 of the fields appearing once the email is submitted.
-
aubreybourkeReplied on January 2, 2018 at 5:18 PM
You can mark a field as required to force the user to fill a field. They wont be able to submit until all required fields are filled.
To do so open the properties for the field. And on the general tab, enable the required setting
You could set a condition to hide the second field if it matches.
For example:
You can see a working demo of this:
https://form.jotform.com/80014580736958
Also its possible to hide the second field in your submissions: