Let us say the a wizard has 5 steps.
Where user goes from step 2 -> step 3, I want to do some activity.
Currently I use e.step.options.index inside onSelect method to do that.
function onSelect(e) {
if (e.step.options.index == 3) {
//do something
}
}
The problem is the "//do something" is also executed when user comes to step 3 from step 4 (step 4 -> step 3).
I do NOT want this to happen. I want to prevent this from happening.
How do I do it?
How do I know which step the user came from?