Trying to change the title of a Record Tab in the SOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago - last edited 4 hours ago
I have a UI Action that runs in the Interaction Form from the Service Operations Workspace which will open the Record Page for the sc_cat_item table:
function onClick() {
var result = g_form.submit('sysverb_ws_save');
if (!result) { // failed form submission
return;
}
result.then(function() {
var params ={};
params.sysparm_parent_table = "interaction";
params.sysparm_parent_sys_id = g_form.getUniqueValue();
params.sysparm_search_query = g_form.getValue('short_description');
params.sysparm_caller_id = g_form.getValue('opened_for');
g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
});
}
I have created my own variant of the Record Page that looks for the table to be sc_cat_item and the sys_id to contain "-1". The body of this page is just an iframe that points to a Service Portal which was a requirement I had.
Currently everything works nicely in my implementation except one thing: How to rename the tab? You can see in the screenshot that after I click "Create Request", the new tab is called "Record" and I couldn't find how to change this title anywhere. Setting the Label of the Body in the UI Builder Editor didn't do it.
This is the link of the page when it opens:
...service-now.com/now/sow/record/interaction/8425baeb87ff2210c79ec805dabb3558/sub/record/sc_cat_item/-1_uid_1/params/extra-params/parent_table%2Finteraction%2Fparent_sys_id%2F8425baeb87ff2210c79ec805dabb3558%2Fsysparm_parent_table%2Finteraction%2Fsysparm_parent_sys_id%2F8425baeb87ff2210c79ec805dabb3558%2Fsysparm_search_query%2Fsoftware%2Fsysparm_caller_id%2Fbc35367bdba41994b532a9f70596191c
Any help would be appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hello @PabloL ,
Good Day!
Usually when we open a Record Page , the tab title is auto-generated from record's display value. Since you are passing sys_id=-1 which is a non existent record and it doesn't have a display value and making it fall back to the table label which is "Record".
Can you try adding "params.sysparm_tab_title = "Create Request/ anything you wanted to add" ; " before your "g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);"
Let me know how did that go.
Thankyou!
Please "Mark Helpful" if it resolved your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @PabloL ,
The tab title in Workspace often uses the table’s Display field (the field marked Display = true) to determine what shows up in the tab.....You can edit which field is the Display field via System Definition > Dictionary for that table....In many Workspaces (like SOW or CSM/FSM configurable workspace), there is a sessionTabTitle property in UX Page Properties > Experiences which lets you specify which fields to show in the tab title.
As a workaround, you can use client scripting (in UI Builder / Next Experience) with APIs like helpers.screen.updateStatus({ title: "My Title" }) after the page loads to override the tab title...
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/