Hello,
I'm building a form where a field may become optional depending on a check box. I've set some validator on the field, but if I check the checkbox, the validators remain active on the field. Is there a way to dynamically attribute validators to a field ?
I try to disable the field, but even with the field beeing disabled, the validators are still working.
Moreover, disabled field should not be submitted and validated with the form. How to avoid that ?