I'm trying to validate US zip code which is 5 digits. In the collectjs docs there isn't a min/max length field validator, I can easily write a regex that expect 5 digits exactly and the docs say there is regExp field validation but no example is given on how it works. Even your own form builder produces an error when "regExp" validator is selected for a new field:
https://forms.vgs.dev/
Uncaught (in promise) Error: Invalid validations: regExp
Hey there,
I'm trying to validate US zip code which is 5 digits. In the collectjs docs there isn't a min/max length field validator, I can easily write a regex that expect 5 digits exactly and the docs say there is
regExp
field validation but no example is given on how it works. Even your own form builder produces an error when "regExp" validator is selected for a new field: https://forms.vgs.dev/Can you provide a working example?