Need help to call function by passing parameter in UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi Team,
We are trying to use the pop functionality within the Workspace Client Script section in UI action.
When we click on UI Action the pop up will be shown, but after selecting the value in pop using
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
so you are using showFrame to call UI page and value selected in UI page should be available again in workspace client script?
share screenshots.
💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
In my experience, you can open a pop up via g_modal.showFrame() in a UI Action, and then pass back selected values using a UI Page and window.postMessage / iframeMsgHelper.confirm() to send data from the iframe to the parent, then in your callback in showFrame() catch those values and call a GlideAjax or server action before closing the dialog...
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/