Show pop up message using ui policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2022 08:54 AM
Hi ,
We have a form in our ServiceNow portal which is a record producer and it creates a case in backend.
In the form there's a reference field which refers to our templates table which stores problem statements. And we have a URL field which is also a reference field referring to Application service table.
My requirement is to show a pop up message to the user, when user selects "I have a problem with reviews on my websites" and "My page is not loading" problem statement in the problem_statement field and URL is HCDV sites(HCDV is a platform in application service table).
I am using UI policy but in the condition i couldn't dot walk to the application service table. Can someone help me with this? Let me know if i have to use client script for this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2022 11:04 AM
Hi,
Both UI policy and Client scripts run on the client side, and will not have access to dotwalk, that requires a script that runs server side.
It's possible to run a script in either UI policy or a Client script, that shows a popup under specific conditions, but in this case, you would need to hard-code the sys_id:s which should trigger the popup.
Maybe not desirable.
Another option is to use GlideAjax and a script include along with a onChange Catalog Client script to determine when the popup should.. well.. pop up 🙂
Read this article to get started with GlideAjax, and ask if you need additional help.