Service Portal Submit & Redirect [Madrid]
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 ![]()
1) The redirected page after submitting the Catalog Item
2) Edit the option schema for widget SC Catalog Item
3) Add a new option, name should be "auto_redirect"
4) On the Service Portal, within a Catalog Item, ctrl right click on the Widget and select Instance Options
5) Leave the auto_redirect option unchecked
6) The end result... no redirect after submitting a Catalog Item
---
And that's it actually. Hope you like it. If any questions or remarks, let me know!
| 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
---
https://www.servicenow.com/community/developer-articles/service-portal-submit-redirect-madrid/ta-p/2325132
