Using below code i am trying to showPrompt using Alert JS but, it returns an error which is Alert.Input() is not a constructor.
How could i solve the same issue?
function Myalert()
{
var CaseE = Xrm.Page.getAttribute("new_first_escalation").getValue();
if(CaseE == true){
var options = {
id: "promptExample",
buttons: [new Alert.Button("OK", function(results) {
var subscribe = results[0].value;
var details = results[1].value;
alert("Subscribe: " + subscribe);
alert("Details: " + details);
})]
};
var alertBase = new Alert(options);
alertBase.showPrompt([
new Alert.Input({ label: "Subscribe", type: "checkbox" }),
new Alert.MultiLine({ label: "Details" })
]);
}
else {
Alert.show("Would you like to create a sale?", "This will create and open the new sale record.",
[
new Alert.Button("Create Sale", function () {
Alert.show("Sale created successfully!", null, null, "SUCCESS", 500, 200);
}, true, true),
new Alert.Button("Not now")
], "QUESTION", 500, 200);
}
}
*This post is locked for comments