UI Action - Workspace Configurations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 01:00 PM
Hi all,
I am using the following script to create a UI Action/relate link and it works perfectly. "MY URL" actually contains a link, I just redacted it below. My action name is kb_action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 09:12 PM
you want to open URL in new tab and submit the form
then use this in workspace client script
Ensure both the workspace checkboxes are checked
function onClick(g_form) {
open("MY URL");
g_form.submit('kb_action');
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 05:33 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 05:35 AM
Thank you, Ankur!! That worked even though I had to change my script on the UI Action. The one listed above worked earlier yesterday and then stopped working. So, I changed the script to the following and it seems to work now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 05:38 AM
One more question, do you know if there is a way to just open the URL in a new tab within SOW versus a new browser tab?
Thanks,
Jonathan