Client script working in workspace but not in native UI

GSathyaPrakash
Tera Contributor

Hi,

Requirement: Whenever state filed changes to "Closed Incomplete" , we need to capture the reason and update that in work notes.

Client script:

GSathyaPrakash_0-1744807207225.png


This script is working in workspace but not in native form. 

GSathyaPrakash_1-1744807421688.png

 

4 REPLIES 4

JenniferRah
Mega Sage

According to this help document, it is only used for workspaces. 

 

https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/app-store/dev_portal/API_referenc...

J Siva
Tera Sage

Hi @GSathyaPrakash 

g_modal works only on workspace.

For native UI, you can try glidemodal. PFB link for more info.

https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/app-store/dev_portal/API_referenc...

Regards,

Siva

Hi @J Siva ,

Thanks for your reply. Could you suggest how we can achieve this functionality in both workspace and in native UI form.?

Hi @GSathyaPrakash 

PFB article to check if the current page is native ui or workspace. Inside the respective if block you can write the core ui or workspace logics.

https://www.servicenow.com/community/now-platform-forum/how-to-determine-if-you-are-in-workspace-in-...

 

Regards,

Siva