-
zebra10Asked on October 12, 2018 at 3:42 PM
What masking scheme can I use for a text field that must start with "--" or "rue" ?
Thanks
-
Mike_G JotForm SupportReplied on October 12, 2018 at 4:32 PM
You can enter "--" or "rue" at the beginning of the input mask that you will set.
The screenshot below shows how it works.
I hope this helps. If you have other questions or concerns, please feel free to let us know.
-
zebra10Replied on October 12, 2018 at 5:35 PM
Thank you Mike but I suppose I did not explain well.
1-Entries in one unique field can start with either "--" or "rue " (anything else not accepted)
2-Entries are NOT of fixed length
exemples:
-- is ok
--12rtp is ok
rue Helene Boucher is ok
rue Blanky is ok
Hope this helps
Regards
-
Victoria_KReplied on October 12, 2018 at 5:59 PM
Hello,
I'm afraid this is not possible to apply several input masks to single field. You could add a conditional statement to check if input to the field starts with some value and to show your custom warning based on that:
Test form: https://form.jotform.com/82847300614959
Related guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer
We will gladly assist if you need any further help.
-
zebra10Replied on October 13, 2018 at 5:16 AM
Thanks Victoria.
The fixed length is a real drawback in many masks I would like to implement.
Regards,