Hi there,
I am using the "Alert.js" pluggin to confirm the save of a Case. I expected the page to wait for the result of the Alert.js dialog, but the page continues and thus saves the Case before the user can address the confirmation.
Anyone have any experience with this?
Below is my code.
if ( duplicateRequestWithoutPRI ) { //Otherwise we need to give the USS the option to create or not Alert.show( "An active request for the same security classification for an individual with the same Lastname/DOB already exists.", null,
[{ label: "Create Request", callback: function () { Alert.show( "Request created successfully!", null, null, "SUCCESS", 500, 200 ); } },
{ label: "Cancel Request", callback: function () { context.getEventArgs().preventDefault(); } }], "WARNING", 500, 200 ); }