- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 08:46 AM
Hi All,
I am trying to create a UI Action Script on the sc_req_item table that opens its related configuration item in a new tab. However, I can't seem to get it to work...
Here is what I have right now,
Active = True, Show insert = True, Show update = True, Client = True, Form button = True
Onclick = deploy_request(), Condition = current.configuration_item != NULL
function deploy_request() {
var url = 'cmdb_ci.do?sys_id='+current.configuration_item;
g_navigation.open(url);
}
Currently, the button doesn't seem to do anything...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 10:42 AM
Hi @Jbelter ,
current will not work if you check client, please use the below script
function deploy_request() {
var url ="cmdb_ci.do?sys_id="+g_form.getValue("configuration_item"); //url
g_navigation.open(url, '_blank'); //open in new tab
}
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 10:42 AM
Hi @Jbelter ,
current will not work if you check client, please use the below script
function deploy_request() {
var url ="cmdb_ci.do?sys_id="+g_form.getValue("configuration_item"); //url
g_navigation.open(url, '_blank'); //open in new tab
}
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 01:31 PM
This worked great, thank you! 😁