How to open a modal with input fields from a custom UI action in Workspace?

raj12345
Tera Contributor

Hi Community,

I’m working on a custom Workspace experience in ServiceNow, and I need help implementing the following functionality:

  • In the right-hand corner of the Workspace form, I have a custom UI action labeled “Transfer Case to GPS.”

When a user clicks this action, I want to open a modal dialog window.

  • The modal should contain 4manually fillable fields (e.g., A, B, C, D).

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@raj12345 

you can use g_modal in workspace client script in your UI action

you should find many OOTB UI actions using something similar

check below links

g_modal - Client 

How to use UI Actions in Workspaces 

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

@raj12345 

Hope you are doing good.

Did my reply answer your question?

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

@raj12345 

Hope you are doing good.

Did my reply answer your question?

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

BhimalA
Tera Contributor

Hi , I want to certify administration can anyone pls help me