Popup catalog client script with buttons

Community Alums
Not applicable

Hi,

I need to create an onLoad catalog client script on my catalog item that will pop up a message:

"do you want to continue?"

and under will be two buttons:

"Yes" and "No"

If the user will click on 'Yes' the pop up will be closed and he will stay at the same page.

If he will click 'No' then he needs to redirect to Service Portal homepage

5 REPLIES 5

Whilst this may work, I think the question of "why do you want to immediately ask a user if they want to be there?" is more important. It's quite a poor user experience to load a catalog item and immediately be asked if you want to leave. It's confusing and would likely make users who do need that item feel that it's not right for them to use.