Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I've created a multistep form using regualr FAPI fields(in code).
I've added the '#limit_validation_errors' => array(),
to my "previous" button.
If i do not enable clientside validation, everything works fine but when enabled it throws error.
I think that should support some kind of class so when that class is added to the button the clientside validation won't happen.
10x.
Comments
Comment #1
attiks CreditAttribution: attiks commentedCan you try adding
class="cancel"
to the buttonComment #2
doronsever CreditAttribution: doronsever commentedYes, that indded worked.
But i think it will be better that we could add our own classes for buttons so that clientside validation won't apply.
But adding this class did do the trick.
10x!
Comment #3
Jelle_SSee also #2056219: General problem with drupal AJAX requests prevented by clientside validation for the limit_validation_errors behavior