HTML required attribute in mandatory input

Notice: This thread is very old.
llsm
Member | 121
+
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)

David Matějka
Moderator | 6445
+
+1
-

you can disable html5 validation using:

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