UI Builder 1st time login user to show confirm modal

Tadz
Tera Guru
Tera Guru

Hi,

I have this scenario when a user has log in the 1st time in an UI Builder portal.

I want to show a confirm message modal to redirect him for a KB article. (Since guided tours are not working on UIB).

 

Will this be possible?

I have check @context.session but seems not to find anything useful for my implementation.

And creating a table just for tracking that would be overkill.

 

Thanks,

Tads

3 REPLIES 3

Michael Fry1
Kilo Patron

You might need to create a new variant with a condition check. If the condition is true, show this variant which shows the confirmation message. If false, then don't show the message and continue. You'll need a flag somewhere to track true/false. https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/ui-builder/task/...

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think you'll either need to use a table or something like user preferences to track whether the user has been in the experience before, then you would write a data resource that can check and set the user preferences.

Once you have that down you can add a modal to your experience's landing page (you'll only be able to do this on a page by page or variant by variant basis, not the entire experience) that gets triggered on page load if the person hasn't yet visited the experience. 

TEdwards
Kilo Sage

Hello there. I was wondering if you were ever able to accomplish this and, if so, how. I am trying to accomplish something similar. Thank you!