UI Page/Pop-up from onChange Client script in Service Operations Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:57 PM
Hi All,
I am looking for guidance on how we can show a pop-up or UI page from an OnChange Client Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 12:04 AM
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
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-22-2025 06:34 AM
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.
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-22-2025 11:24 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 12:03 AM - edited 05-23-2025 12:06 AM
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
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