Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Client script not working in CSM Workspace

servicenow lath
Tera Contributor

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

 

 

d5.jpg

9 REPLIES 9

Sagar Pagar
Tera Patron

Hi @servicenow lath,

Try by removing the extra brace at the last.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

it is not working in csm workspace . but working in native UI

Saurav11
Kilo Patron
Kilo Patron

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:-

 

https://www.servicenow.com/community/it-service-management-forum/how-to-call-ui-page-from-workspace-...

 

Please mark my answer as correct based on Impact.

Its not working In csm workspace