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:52 AM
@Community Alums
By using the below code, it is trying to redirect to homepage after first section itself i.e. Describe Needs by giving the popup message (Leave/Cancel). When click on Leave, it is redirecting to homepage.
But it should redirect after checkout page at the end.
var URL = "?id=instance_URL_Link"; //Redirect part of widget sc item custom
top.window.location = URL;
1.Redirecting at the below stage only.
2. Redirection to happen at this stage

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 10:45 AM
Redirection to request page is usually taken care of via Catalog checkout widget.
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.