HTML validation not working in form #1205
Replies: 2 comments 5 replies
-
Hi @thom-moresoda, Can you share with us what your template(s) look like? It might be a matter of one including a parameter or attribute and the other is not. This is cleaned up nicely in Freeform 5, but in Freeform 4, there's a handful of ways this might be done: 🙂 useRequiredAttribute: true formAttributes: {
"novalidate": true,
"data-form-id": "test"
} inputAttributes: {
"readonly": true,
"data-field-id": "test"
} Additionally, inside the form builder for the form or each field using the "Attributes" table. |
Beta Was this translation helpful? Give feedback.
-
Hi @kjmartens thanks for the reply 👍 I've stuck some of the templating below from each form so you can see how the form tags & fields are being rendered on the page Form One (html validation not appearing)
Form Two (html validation appearing)
It doesn't look like any attributes have been added via the editor for either form & the html form tags look identical other than an extra gtm tag on the first one |
Beta Was this translation helpful? Give feedback.
-
"craftcms/cms": "4.5.6.1",
"solspace/craft-freeform": "4.1.9"
I have a site with multiple freeform forms set up - on some of the forms the html email validation works, but on others it doesn't. The forms have identical settings in the control panel & are rendered in the same way in the templates
Hoping someone can point me in the right direction!
Beta Was this translation helpful? Give feedback.
All reactions