Redirect to ESC Homepage after Order guide submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 04:23 AM
After Order guide submission (checkout) page , post submission form looks something like below(1st screenshot).
So skipping that request summary page. It should redirect to the ESC Homepage (2nd Screenshot).
Note : Order guide is submitted through HR Task (HRJ Task Submit Order guide) task type.
Used the below 2 methods applying on Submit catalog client script, but no luck
// First Method
function onSubmit(){
function redirectToHomepage() {
window.location.href = "https://instancename.service-now.com/esc";
}
document.getElementById("ec_pro_dashboard").onSubmit = redirectToHomepage;
}
//Second Method
var URL = "?id=instance_URL_Link"; //Redirect part of widget sc item custom
top.window.location = URL;
@Ankur Bawiskar @Community Alums @Sandeep Rajput @AnveshKumar M

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 04:26 AM
Hi @Ram33843094 ,
follow the below steps:
- Create an after insert business rule on the Requested Item table
- Set the condition where order guide is <order_guide_name>
- 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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 04:31 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 04:34 AM
Did it work for "ec_dashboard" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 04:42 AM
@Community Alums
It still didnt work. Landing on the same request summary page after submission.