The CreatorCon Call for Content is officially open! Get started here.

Adding a pop-up confirmation to a UI Action

turnea
Mega Expert

Hi everyone,

 

I've got a UI Action currently that is called "Cancel My Requested Item" for RITMs.   We're running into issues where clients are accidentally clicking the button and it automatically cancels the item.   I'm looking to add a pop-up confirmation prior to it actually cancelling the item, however I'm not extremely proficient in scripting and need some help.

 

Currently, the UI Action is server-side (client checkbox is unchecked) and the script is as follows:

 

current.state = '12';

current.stage = 'Request Cancelled';

current.active=false;

current.update();

action.setRedirectURL(current);

 

Is there an easy way to add a confirm before that script runs?   This may be an easy question but I appreciate the help!

1 ACCEPTED SOLUTION
4 REPLIES 4

Jim Coyne
Kilo Patron

Kalaiarasan Pus
Giga Sage

try this.. had answered a similar question...



Re: Cancel confirm window after clicking cancel button


Thank you, this worked perfectly!


adriantan08
Giga Expert

This will no longer work in Service Portal as it only allows server-side UI actions. 


Any idea on how to do a confirmation pop-up on Service Portal?