Forum
Form field validation using regex?
Hi,
I'd like to validate a field server-side using regex in your Forms app, but can't find any reference to this being possible?
Can someone please let me know if they've achieved this?
Hi,
I'd like to validate a field server-side using regex in your Forms app, but can't find any reference to this being possible?
Can someone please let me know if they've achieved this?
You can use the
pattern
attribute, as with HTML5 form inputs.Hi Drew,
The pattern attribute isn't compatible with IE8, IE9 or Safari unfortunately.
I just need to ensure a field is empty prior to submitting the form.
It's compatible with Perch. The validation is done on the server.
Oh, ok, brilliant. Thanks very much Drew.