Streaming live at 10am (PST)

Forms field validation


#1

I really like the way Webflow forms prompt the user if a form field is required and they haven't entered details. It would be great if the validation could go a step further and validate the email structure without the need to drop in JS code, (i.e., contains the @ and . in the right places), dates are entered correctly and telephone numbers contain only numbers.

Any thoughts on adding?
Mike


#2

Further to this post. I can see that there is an email validation option in the settings panel so, sorry, my mistake. Maybe date validation might be useful too.


#3

Form fields in Webflow are using the HTML5 input types, and HTML5 doesn't do date validation.


#4

Thanks for confirming. We can complete secondary date validation via our secure forms service. email is the really useful one, so well done Webflow for including this feature.


#5

Hi @pnewest,
Well, you can use the input pattern attribute to validate some of your date fields.

http://www.w3schools.com/tags/att_input_pattern.asp

:wink:


#6

Hi @maximus
Thanks for the advice. Looks like that will sort the issue.


#7