- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 12:50 AM
Hi,
I have a requirement to raise a pop up when user login per session. The UI page functionality works fine but when the user login the pop does not come up
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 06:19 AM
@Alon Grod To show popup after login page there are no suggested solutions. The only way is to create the global ui script and add the modal in that.
The issue with this approach is that the global ui script gets attached to all the pages we open in native ui. And the popup may open in all the pages.
So you need to restrict the popup to be visible only once using session. The functions putClientData and getClientData.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 05:49 AM
@Alon Grod From where you are triggering the ui page?
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 05:51 AM
@jaheerhattiwale the processing script should trigger the ui by calling the script include no?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 05:55 AM
@Alon Grod On login how you are triggering the ui page?
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 05:59 AM
@Alon Grod I mean are you able to trigger the ui page after login?
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 06:01 AM
@jaheerhattiwale the name of the ui page is 'terms_and_conditions_dialog'. If the script include return true, then the function show terms should execute the pop up with the ui page