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

attiks’s picture

Can you try adding class="cancel" to the button

doronsever’s picture

Yes, 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!

Jelle_S’s picture

Status:Active» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.