- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:02 AM
Hi,
I have a button created on incident form when i click on it i want to redirect to Service portal categories place.
https://dev82927.service-now.com/sp?id=sc_category
can anyone please help me on this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:22 AM
Glad that it worked.
to open in new tab use this
var url = '/sp?id=sc_category';
g_navigation.open(url, '_blank');
Let me know if I have answered your question.
If so, please mark my response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:22 AM
Glad that it worked.
to open in new tab use this
var url = '/sp?id=sc_category';
g_navigation.open(url, '_blank');
Let me know if I have answered your question.
If so, please mark my response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:25 AM
Can you please tell me how to have this button only on related list but not on actual list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:27 AM
in the UI action condition use this
RP.isRelatedList()
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:34 AM
Hey Ankur,
I have one UI Action button on a form that does several things depending on the values selected on the form/Interaction. When I check the box for client and add function code, all other codes within the UI Action stops working. For example:
If Incident is selected, then Interaction will redirect to Incident form. If Request is selected, another field is visible to select requested form. But when this certain valule is selected "abc123" I want the agent to be redirected to portal to "abc123" catalog item form to fulfill the request and submit. I also, would like the agent to be redirected back to the interaction (new record) after submitting "abc123" on the portal page. Any help will be appreciated.