Skip to main content

Confirmation

info

This type of pop-up displays a message confirming the user's choice.

There are two types of confirmation popups: Validate/Cancel popups, and Yes/No popups.

Both types of popups work in the same way:

When the user clicks on the Validate button (for Validate/Cancel popups) or Yes (for Yes/No popups), the integrator has the power to define the treatment to be executed.

var popup = JSAPI.get().getPopupAPI().buildCancelValidateConfirmationPopup('This action will be performed', function(confirmed){
if(confirmed){
// .....

popup.close();
});
popup.setDescription('My description');
popup.setTitle('My title");
popup.setIcon('fa fa-remove');
popup.show();