Hey, I have searched for this in the forum and found these:
Both provided solutions are some form of “what do you want to validate? let’s find some workarounds”, I find this a bit inadequate. Other platforms allow you to supply a custom regular expression which is used to validate the provided value. This offers a lot of flexibility, letting creators specify exactly what they want the field to contain.
I think this kind of validation should be offered in TypeForm. Regular expressions are a mature technology widely used since the beginning of the internet, and can be very useful for this purpose. I see a few ways this could happen:
- An additional setting in Short Text settings allowing you to provide a custom validation regular expression
- Support for regular expressions in Logic conditions, permitting loops back to the question if the value does not validate correctly
- A new value type which supports regular expressions
I hope this kind of feature is considered as some values feature detailed requirements, the available workarounds for which create awkwardness for the end-user.
Thnak you!