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:12 AM
Hi @servicenow lath,
Try by removing the extra brace at the last.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:15 AM
it is not working in csm workspace . but working in native UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:18 AM
Hello,
Agent workspace doesn't support GlideDialogWindow as it uses Jelly and workspace doesn't support jelly.
You can use g_modal to show the fields
var glideModal = new GlideModal('open');
glideModal.setTitle('To Create Contact');
glideModal.setPreference('id', '12');
glideModal.setPreference('id', 'ABC');
glideModal.render();
Please check the below post for the same:-
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 07:32 AM - edited 11-13-2022 11:58 PM
Its not working In csm workspace