Conditional switching of mandatory field status
HiI have a form that requires a number of fields to be hidden depending on the selection of a yes/No radio button field, ie if the radio button selection is "no", then about 6 other fields are not necessary and must be hidden.
Obviously, if the fields which must be conditionally hidden are defined as mandatory, then on submit, errors are thrown for each of those hidden fields. Conversely, if the radio button selection is "yes", then all fields must be shown and they must be required fields.
Is it possible that if a field is hidden, it automatically loses its mandatory status shown it retains its required status? If not, is there a way to achieve this functionality.
Regards
Wayne