Agent Workspace Related list item open in new tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 10:56 AM
Hi Team
I am using the default record page in my custom Agent Workspace. Can I enable related list items to open in a new tab within the same section/tab?
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 11:12 AM
Hi Srivatsa,
Yes, in ServiceNow Agent Workspace, you can modify how related list items open. By default, clicking a related list item (like your Sales Task) opens in the same section/tab, but you can configure it to open in a new tab within the same workspace.
Solution: Modify the Related List Navigation Behavior
Option 1: Enable "Open in New Tab" for Related List Items
Navigate to UI Builder
Go to Now Experience UI Builder (/now/ui-builder).
Select your Agent Workspace experience (your custom one).
Edit the Record Page Behavior
Open the Record Page used for your workspace.
Locate the Related List Component that displays your related tasks.
Change Link Behavior
Find the property that controls navigation behavior (e.g., Link Action or Navigation Action).
Set it to "Open in new tab" instead of the default navigation.
Save & Test
Save the changes and test by clicking a related list item.
Option 2: Use Workspace Client Script to Override Click Action
If the UI Builder doesn't provide the necessary controls, you can use a Client Script to modify how related list items open.
Navigate to "Workspace Client Scripts"
Open sys_script_client table and create a new Client Script for your workspace.
Add a Script to Open Related Records in a New Tab
function openInNewTab(event, sys_id) {
event.preventDefault();
const url = `/now/workspace/agent/${sys_id}`; // Adjust URL based on your workspace
window.open(url, '_blank');
}
Attach this function to the click event of related list items.
Conclusion
If your workspace is using UI Actions, ensure they allow "Open in new tab."
Some layouts might require custom actions for related list clicks.
Kindly mark it as "Accepted Solution"/"helpful", as it resolves your query. Please press like button for the resolution provided.
With Regards,
Krishna Kumar M - Talk with AIT3ch
LinkedIn: https://www.linkedin.com/in/mkrishnak4/
YouTube: https://www.youtube.com/@KrishAIT3CH
Topmate: https://topmate.io/mkrishnak4 [ Connect for 1-1 Session]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 11:15 AM
Open UI Builder:
• Navigate to Now Experience UI Builder (/now/ui/builder).
• Select your custom Agent Workspace.
2. Edit the Record Page:
• Find and open the default record page for your workspace.
• Locate the Related Lists component.
3. Modify the Related List Settings:
• Select the Related Lists component.
• Look for an option like “Open in new tab” or “Open in sub-tab” (availability depends on the version of ServiceNow).
• Enable this setting if available.
4. Save and Publish Changes:
• Click Save and Publish the changes.
✔️ If this solves your issue, please mark it as Correct.
✔️ If you found it helpful, please mark it as Helpful.
—
Shubham Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 12:01 PM - edited 03-13-2025 02:22 PM
Thanks @Shubham_Jain , @KKM for the response,
I don't see the options which you guys mentioned, not sure if I am missing something, could please help me here.
Thanks
Sri