Hi everyone,
I have an OmniScript with 10 steps/screens, and each screen has a custom LWC Continue button.
My requirement is:
- User is currently on Step 7.
- Step 7 has another button (e.g., Edit Personal Information).
- When the user clicks this button, I navigate the user back to Step 2.
- The data on Step 2 is already populated, so the user can review/update it.
- When the user clicks the Continue button on Step 2, I want to navigate the user directly back to Step 7, instead of continuing through Steps 3 → 4 → 5 → 6.
- All navigation buttons are implemented using custom LWC components.
Question:
Is there a supported way in OmniScript/LWC to navigate directly from Step 2 back to a specific later step (Step 7) of the same parent OmniScript?
I have looked into OmniScript navigation methods, but I haven't found a supported method that allows me to specify a particular step/index to navigate to.
Has anyone implemented a similar Edit → navigate back to the original step
pattern in OmniScript? If so, what would be the recommended approach?
#Omnistudio #Salesforce Developer #Vlocity #Financial Services Cloud #TrailheadA common supported approach is to keep the navigation state in the parent OmniScript and treat Step 2 as an edit mode rather than trying to make the Step 2 Continue button directly jump to an arbitrary step index. When Step 7 opens Step 2, store a flag such as returnToStep7 = true in the OmniScript data JSON. Then, on Step 2 Continue, your custom LWC can check that flag and invoke the parent OmniScript navigation logic to return to Step 7; otherwise, it follows the normal Step 2 → Step 3 flow. This avoids hard-coding unsupported step-index navigation inside the LWC and works well for an Edit → Return pattern. If you share your current custom LWC navigation code, I can show the exact implementation for your OmniScript.