I'm trying to create an email validation in CSS using HTML 5 attributes. I'm currently using version 10 of Laserfiche.
Question
Question
Answer
Forms will pick up on a pattern attribute via the Parsley validation it uses, but on an email field you'd have to set the attribute with JavaScript.
Since you are requiring a specific domain, that kind of addresses one of the biggest reasons you'd want to use an Email field anyway.
I'd say to just use a normal Single Line field and use the out-of-the-box Regex option to check for the domain pattern.
Replies
What kind of email validation are you trying to configure? What attributes are you using?
It's really up to the client browser to support HTML5, not Forms.
I'm trying to use the attribute 'pattern' in a form, to limit email inputs to only a certain domain.
Forms will pick up on a pattern attribute via the Parsley validation it uses, but on an email field you'd have to set the attribute with JavaScript.
Since you are requiring a specific domain, that kind of addresses one of the biggest reasons you'd want to use an Email field anyway.
I'd say to just use a normal Single Line field and use the out-of-the-box Regex option to check for the domain pattern.
Thank you! That worked actually.