The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Redirect to the esc home page after submitting the order guide

sri vijaya
Tera Contributor

Hi

Currently like when we submit the order guide, it lands to the requested items details page, but right now we have a new requirement , like when we submit the order guide, it should directly redirects to esc home page without showing the requested items details landing page

Attaching the screenshot for reference which is right now landing page 

please guide us to resolve this issue

@Community Alums @Sandeep Rajput @Susan Britt 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@sri vijaya Redirection to request page is usually taken care of via Catalog checkout widget.

Screenshot 2023-05-18 at 11.07.28 PM.png

Unfortunately, this is a read only widget hence you might need to clone it fit it into the existing widget hierarchy and update the redirection according to your need.

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hi @sri vijaya ,

follow the below steps:

  1. Create an after insert business rule on the Requested Item table
  2. Set the condition where order guide is <order_guide_name>
  3. In the advanced section insert the following code:
(function executeRule(current, previous /*null when async*/) {

  gs.setRedirect('<your_page_name>.do');

})(current, previous);

It should work fine!

 

sri vijaya
Tera Contributor

Hi @Community Alums 

Followed the same steps, but  redirection is not working

 

Community Alums
Not applicable

Hi @sri vijaya ,

I believe you have 2 accounts in community and asking the same question from both the accounts, please do not duplicate.

Another account is @Ram33843094 

Same question: https://www.servicenow.com/community/developer-forum/redirect-to-esc-homepage-after-order-guide-subm...

 

sri vijaya
Tera Contributor

Hi @Community Alums 

Thats not my account , i have only one account in community

but Apologies, thats my team member who is also working on the same requirement, posted with out knowing about my previous post here

Thank you