Hi,
You can use your own JS to achieve your requirement. Create new command and add below code in action.
var confirmationButtons = [
new Alert.Button("Activate", function () {
// create the SetState request
//Add web api code Activate your record
}, true, false),
new Alert.Button("Cancel", function () {
Alert.hide();
}
}, true, false)
];
Alert.show("ADD Your Message on dialog here", "",
confirmationButtons, "QUESTION", 500, 210, null, false, 30);
You will need to download Alert.js lbrary from below github link.
https://github.com/PaulNieuwelaar/alertjs
You can read about this library on github wiki page. This library is fully supported on UCI and we have used this in our recent project.
If found helpful, Please mark my answer verified.