How to get the name/ ID of the specific Related list tab using script in UI Action ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
The related list contains multiple tabs and buttons, and the same button is used across different tabs. For example, on the Change Request table, there are related lists such as "Incidents Caused By Change" and "Incidents Fixed By Change".
I need to identify which related list tab is currently active, or from which tab the "New" button was clicked. Since the same button is used on multiple tabs, I want to execute a specific block of code based on the active related list tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
52m ago
what's your actual business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
45m ago
The Change Request record has related lists displayed as tabs, and a banner "New" button is available for those related lists.
When a user clicks the "New" button, I need to determine which related list tab is currently active. At the moment, I am unable to retrieve the active tab name.
Once I can identify the active tab, I will add a specific block of code that executes only when the active related list is "Incidents Caused By Change". The same "New" button is used across multiple related list tabs, so the logic needs to be based on the selected tab.
