logo

NJP

Service Portal Submit & Redirect [Madrid]

Import · Apr 16, 2019 · article

Hi there,

A short article to share gained knowledge about submitting Catalog Items on the Service Portal and the auto-redirect which is happening after the submission of the Catalog Item. What if you don't want to have an auto-redirect?!

No need to trash the SC Catalog Item widget and design something custom. After investigating the out-of-the-box SC Catalog Item widget, I noticed that in the Client Script of the widget, c.options.auto_redirect is being used. Looking at the widget options schema though, no such option available. So what if we just add that option to the option schema... works like a charm image

1) The redirected page after submitting the Catalog Item

image

2) Edit the option schema for widget SC Catalog Item

image

3) Add a new option, name should be "auto_redirect"

image

4) On the Service Portal, within a Catalog Item, ctrl right click on the Widget and select Instance Options

image

5) Leave the auto_redirect option unchecked

image

6) The end result... no redirect after submitting a Catalog Item

image

---

And that's it actually. Hope you like it. If any questions or remarks, let me know!

image If this post helped you in any way, I would appreciate it if you hit bookmark or mark it as helpful.Interested in more articles, blogs, videos, and Share projects on Service Portal I published?- Service Portal

Kind regards,Mark

2020 ServiceNow Community MVP

2020 ServiceNow Developer MVP

---

LinkedIn

image

View original source

https://www.servicenow.com/community/developer-articles/service-portal-submit-redirect-madrid/ta-p/2325132