why pop up does not come up when user login

Alon Grod
Tera Expert

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

 

Screenshot 2023-07-28 at 10.49.28.png

Screenshot 2023-07-28 at 10.49.42.png

1 ACCEPTED SOLUTION

@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.

jaheerhattiwale_0-1690636545726.png

 

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.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

View solution in original post

12 REPLIES 12

@Alon Grod From where you are triggering the ui page?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

@jaheerhattiwale the processing script should trigger the ui by calling the script include no?

@Alon Grod On login how you are triggering the ui page?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

@Alon Grod I mean are you able to trigger the ui page after login?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

@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