UI Action not working in workspace

HemaV
Tera Contributor

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

HemaV_0-1747828187785.png

Workspace client script

HemaV_1-1747828201197.png

 

Let me know if I should try a different approach or provide me a script to try and test.

1 ACCEPTED SOLUTION

@HemaV 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@HemaV 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

It should get a pop-up like this in the workspace view

HemaV_0-1747829287483.png

 

@HemaV 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Salmon Raj V
Tera Contributor

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