I have a multistep webform with required fields. The problem is that when I press the "previous"button in order to go to the page before the validation triggers and does not allow me to change the page. How can I disable the validation if the "previous" button is pressed?

I followed this question but it didnt work by adding this code:

  $form['actions']['wizard_prev']['#validate'] = ['::noValidate'];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.