HTML required attribute in mandatory input

Notice: This thread is very old.

6 years ago

llsm
Member | 122
+
0
-

Hi,
if youre using setRequired or Form::FILLED, it automatically adds required attribute to input. That unfortunately has bad effect in browsers (not using netteForms.js), because they never show error message, only marks empty mandatory fields. I think, there should be way to disable this attribute and have unitary behaviour of form validation.

Last edited by llsm (2014-07-23 17:46)

6 years ago

David Matějka
Moderator | 6202
+
+1
-

you can disable html5 validation using:

$form->elementPrototype->novalidate = "novalidate";