we want to redirect user to a particular page after submittng the catalog form

Amit Dey
Tera Contributor

hi we have a requirement to redirect user to another page but now after submission it is redirecting to the req item page  , please help me to achieve this 

2 REPLIES 2

RaghavSh
Kilo Patron

@Amit Dey You need to create "Page Route Map" for this.

Refer: https://docs.servicenow.com/en-US/bundle/utah-employee-service-management/page/product/human-resourc... 

 

You can select "Route From"  req item page and "Route to" to the page you want.

You can achieve this without any code change.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

Sai Shravan
Mega Sage

Hi @Amit Dey ,

 

To redirect the user to another page after submitting a form, you can use the redirect method in the server-side script that is processing the form submission. Here's an example of how you can redirect the user to a different page:


var redirectUrl = "https://example.com/another-page";
gs.redirect(redirectUrl);


Regards,
Shravan

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you