Austin Nabors-Keating wrote:
I have a wizard page with 2 steps. Once the user completes step1 and moves to step2, I would like to restrict the user going back to step1 again. Please help me if there is any way to implement this?
findButtonByActionID("<action id of button>");
var buttonToDisable = findButtonByActionID("PJL_wizard_previous");
Some common action id's of buttons:
These can be found in codebase/config/actions/actions.xml and other files in the same directory.
Another possibility would be to configure step 2 with custom buttons and not have a back or previous button. Also see the following 2 articles: