Form Builder and Validation methods

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
boonier
Forum Members
Forum Members
Posts: 43
Joined: Mon Feb 19, 2007 11:39 pm

Form Builder and Validation methods

Post by boonier »

Hi

I'm having a bit of an ordeal with HTML5 constraints validation kicking in because the form elements generated in the template automatically have the 'required' attribute rendered in all the required tags.

This is causing a kind of half-way house of validation where the browser does one bit, and the JS or Form Builder server-side is doing the other. It's leading to a messy user experience. The HTML5 validate only seems to work on the <input> tags.

Is there a way to stop FB rendering the 'required' attribute? Or, a way to stop the browser kicking in with it's own? This example is managing it:

https://www.cmscanbesimple.org/demo/for ... r-template

thanks

*** edit ***
ok so <form novalidate> will stop the browser interfering but the module seems to put its own <form> header in...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Form Builder and Validation methods

Post by velden »

boonier wrote: *** edit ***
ok so <form novalidate> will stop the browser interfering but the module seems to put its own <form> header in...
Quick and dirty:

Code: Select all

{FormBuilder whateveryouhaveherenow|replace:'<form>':'<form novalidate>'}
Post Reply

Return to “Modules/Add-Ons”