Open sagikazarmark opened 8 years ago
Hi @sagikazarmark,
There's data atribute data-validation-ignore
for this purpose:
https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/FormBundle/Resources/doc/reference/js_validation.md#ignore-validation-section
Does it fit your needs?
I am aware of it and it does not. There is no way to add that attribute to the widget FROM THE TYPE and (for some reasons I don't understand) if I add the attribute to the input element, the validation still happens, it only works if it is added to a parent element.
There can be many cases when form validation is based on the submitted data. In these cases we might not want to disable the actual validation, but we might want to allow passing invalid data (like only change password if it is passed). However, at the moment there is no way to disable frontend validation in a form type. Since this logic happens within the form, I think it should be possible.
I found a
client_validation
form option, but it doesn't work.