How to remove validation on captcha when click on previous button of last page of multistep form?

Created on 29 May 2019, over 5 years ago
Updated 16 April 2024, 8 months ago

In multistep webform in drupal7

I have added captcha on preview page i.e last page of the form.
But when I move to back step I dont want to fill captcha means captcha should be filled only when click on submit button of the form.

I tried $form['actions']['previous']['#limit_validation_errors'] = array(); in form_alter but it is not working.

Thanks in advance.

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India parul99

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024