Skip to main content

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 #Trailhead

1 resposta
  1. Ontem 08:00

    Hi @Rahul Khedkar

     

    Yes, this can be handled using omniNavigateTo() from the Custom LWC that extends OmniscriptBaseMixin.  

     

    this.omniNavigateTo('Step7'); 

     

    Use the

    Element Name

    of Step 7. This allows you to navigate directly from Step 2 → Step 7 without going through Steps 3–6. omniNavigateTo() is the supported approach for navigating to a specific step within the same OmniScript.  

     

    Hope This Helps!!

0/9000