Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 425 Bytes

Q:-How-to-allow-step-back-during-step-errors.md

File metadata and controls

16 lines (14 loc) · 425 Bytes

A: It is quite easy just add three additional lines of code to the onStepChanging event. See code example below.

$("#wizard").steps({
    onStepChanging: function (event, currentIndex, newIndex)
    {
        // Allways allow step back to the previous step even if the current step is not valid!
        if (currentIndex > newIndex)
        {
            return true;
        }

        ...
    }
});