how to open a new tab when you click a UI Action button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 10:25 AM
here is script i am using in my UI Action:
var change = new GlideRecord("change_request");
change.initialize();
change.short_description = current.short_description;
change.description = current.description;
change.cmdb_ci = current.cmdb_ci;
change.priority = current.priority;
change.assigned_to = current.assigned_to;
var changesysID = change.insert();
gs.addInfoMessage("Change " + change.number + " created");
action.setRedirectURL(change);
action.setReturnURL(current);
i am trying to open a new tab when i click on a UI Action button.
any help would be appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 11:49 AM
not working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 11:40 AM
g_navigation.open("problem.do?sys_id="+answer, "_blank");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 11:49 AM
not working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 12:33 PM
Hello Faraz,
window.open('your url','_blank');
And Please refer to this link: https://community.servicenow.com/community?id=community_question&sys_id=316f8325dbdcdbc01dcaf3231f96...
Hope this thread might resolve your query.
Please mark the answer correct/helpful, if applicable.
Regards,
Soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2021 01:14 AM
window.open('your url','_blank');
Can't figure out the "URL" if i am giving it "change_request.do" its opening a blank change form but no values in it as i am trying to populate some field values from incident form.