UI action client script not working in SIR workspace, but working fine in native UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 12:33 AM
UI action client script not working in SIR workspace, but working fine in native UI.
I have created the declarative action on the related list to make the UI action visible, but when clicking on it it is not working
Here is the script:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 06:45 AM
HI @AamerA ,
When using Workspace options ensure the Client checkbox on the UI Action is set to true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 06:52 AM
Hi @Community Alums , yes the client checkbox is marked as true already
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 08:11 AM
Please share your configuration screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 02:06 AM
Hi @Ankur Bawiskar ,
I have a Ui action called "Create Reimage incident" on the related list to create incident by selecting the configuration item (CI's Affected table) as below.
Ui action and script :
script include which is called in UI action:
For this to be available on the Workspace related list i have created declarative action assignment as below and calling the same script which is there in ui action as well in declarative action assignment client script, which is making the Ui action visible in the related list, but when clicking on that getting error in the browser console as "SCRIPT:EXEC Error while running Client Script "GlideScopedScript": TypeError: g_form.getChecked is not a function"
Declarative Action assignment:
workspace Uia ction visbility:
could you please help me know why this error is coming, when it is working fine in Native UI and not working in workspace