Pop up in CSM workspace

devservicenow k
Tera Contributor

Requirement is to show pop up message in csm workspace ,by UI button .

i have created the UI button but it is not working in CSM workspace, how to solve this do i need to change the APplication scope?

4 REPLIES 4

Vasantharajan N
Giga Sage
Giga Sage

Please use the below script in your UI action Workspace client script section

function onClick(g_form) {
    		g_modal.showFrame({title: 'Test Popup', url: 'show_alert.do', size:'sm'});
}

Note: show_alert.do is my UI Page here

Please refer the below article to learn more about objects that you can play around in the workspace client script.

https://community.servicenow.com/community?id=community_article&sys_id=a9b8e73c1b5e0110be4955fa234bcb11


Thanks & Regards,
Vasanth

What is that testpopup?

Test popup is just a title to the popup window. Please refer to the screenshot below.

Just an alert is the content from ui page.

find_real_file.png


Thanks & Regards,
Vasanth

Can we make to create incident record using this pop up method?