UI Page/Pop-up from onChange Client script in Service Operations Workspace

Aayushi Sharma
Tera Contributor

Hi All, 

 

I am looking for guidance on how we can show a pop-up or UI page from an OnChange Client Script.

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Aayushi Sharma 

you can use g_modal to show popup in workspace

you will see lot of OOTB UI actions where g_modal is used in Workspace client script, so you can refer those as well

check this link on how to do that

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

@Aayushi Sharma 

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

Hi Ankur,

 

Thanks for your response. But I am still facing issue while trying to show a reference field in the pop-up.
The reference field is from another table but it is dependent on one of the fields of incident table.
Can you please help me.

@Aayushi Sharma 

I believe I answered your original question about how to show popup in workspace using g_modal.

For your further question you can pass the sysId of the field from incident and then in modal have that reference field dependent on it

see this link for that help

Filter a reference field in g modal in Workspace 

also check this link on how to have dependency in <g:ui_reference> in UI page, where I shared solution few years ago

Change ui reference query 

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