Client script not working in CSM Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:01 AM
I have Created a Client script that Shows the Dialog box popup.
it is working in Native UI of case record . but it is not working in csm workspace.
i need this to work in csm workspace.
i have kept UI type to all
and also view as workspace
var dialog = new GlideDialogWindow("open"); //
dialog.setTitle("To Create Contact"); //Set the dialog title
dialog.setPreference('id', '12'); //
//dialog.setPreference('id', 'ABC');
dialog.render(); //Open the dialog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:54 AM
Hello,
Go to the UI page open_google and get the endpoint of it as below:-
And use the below script and replace the endpoint with your endpoint
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var url = "/sn_major_inc_mgmt_mim_workbench_promote.do?sysparm_stack=no&sysparm_workspace=" + true;
g_modal.showFrame({
title: getMessage("To Create Contact"),
url: url,
size: 'lg',
autoCloseOn: 'URL_CHANGED',
});
}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 11:40 PM - edited 11-13-2022 06:09 AM
I am Getting an Error like this how to solve this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2022 04:29 AM
Hello,
What is the error over here I can see that the message displaying is the one that is written in the UI page in the else part.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:39 AM
Here is the alternative for GlideModel :-
Creating and Using Modal Components in Agent Workspace
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2023 06:33 PM
Hi, Im facing the same issue. Any solution?