Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.1.1
-
None
Description
Don't know if this is a bug or a "feature", and it appears to be down in DoJo, perhaps. But required and other field validations on the client side happen even if a field is disabled. Is that what we want? I'd expect that since disabled field data is not sent to the server anyway that validating them is unnecessary.
The problem is that I have some form fields that are disabled if they are not required, but they are dynamically enabled and thus required based on values of other fields (a select, in particular, where some values require an additional field and others do not). Currently, I have to add my own custom validation profile to check if the fields are disabled first before performing standard validation. That's a bit cumbersome if I repeat the pattern on multiple pages.