- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 04:55 AM
Hello,
I am working on UI action to function in the compliance workspace view. Below are the options I tried to make it happen, but it's still not working.
- I first enabled both "Workspace Form" and "Format for Configurable Workspace" fields, and the UI Action became visible.
- However, clicking the button didn’t trigger any functionality. I created a Workspace Client Script, but the console shows "button not found".
- Alternatively, I tried creating a page in UI Builder to link it with the Workspace Client Script. The page is created, but I’m unable to find any options to proceed further.
- UI ActionScript
Workspace client script
Let me know if I should try a different approach or provide me a script to try and test.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:14 AM - edited 05-21-2025 05:15 AM
So it should ask for 2 fields 1 is date and other is text
In normal script field of your UI action you can invoke your UI page and have the same fields via HTML elements
then try to use g_modal.showFrame in your workspace client script and show that same UI page
How to use UI Actions in Workspaces
You will find a lot of OOTB UI actions doing this.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:05 AM
what should happen when that button is clicked?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:14 AM - edited 05-21-2025 05:15 AM
So it should ask for 2 fields 1 is date and other is text
In normal script field of your UI action you can invoke your UI page and have the same fields via HTML elements
then try to use g_modal.showFrame in your workspace client script and show that same UI page
How to use UI Actions in Workspaces
You will find a lot of OOTB UI actions doing this.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:06 AM
Hello @HemaV
Verify that a UI Action record has been generated in the "sys_ux_form_action" table. If not, make the record and run the test once more.
Regards,
Salmon Raj Valaparla.
Mob: +917659937955