Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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?
Thanks in advance.
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?
You could use something like the following javascript functions:
findButtonByActionID("<action id of button>");
var buttonToDisable = findButtonByActionID("PJL_wizard_previous");
buttonToDisable.disable();
Some common action id's of buttons:
PJL_wizard_apply
PJL_wizard_next
PJL_wizard_ok
PJL_wizard_previous
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:
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS237700
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS21969