- EcoservAsked on January 02, 2018 at 11:28 AM
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!
- JotForm SupportaubreybourkeAnswered on January 02, 2018 at 12:28 PM
I believe what you are looking for is an input mask
So you would need two of these and then one condition that checks if they are equal. If not display an error message.
You can see a working demo of this here:
- EcoservAnswered on January 02, 2018 at 04:29 PM
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.
- JotForm SupportaubreybourkeAnswered on January 02, 2018 at 05: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.
You can see a working demo of this:
Also its possible to hide the second field in your submissions: