I am aware I can hide/show a form field with JS if for example a radiobutton is selected or not-selected.
But how can I show or hide a required field (text area) if $form->data['somevalue'] = 0 or 1
Goal: on second page of multipage form:
a user with value $form->data['exception'] = 0 should not see the textarea
a user with value $form->data['exception'] = 1 should see the textarea
But how can I show or hide a required field (text area) if $form->data['somevalue'] = 0 or 1
Goal: on second page of multipage form:
a user with value $form->data['exception'] = 0 should not see the textarea
a user with value $form->data['exception'] = 1 should see the textarea