HI
I am trying to create a dialog box in js (https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/Xrm-Navigation/openAlertDialog)
my code:
function confirmdialog() {
var message = { confirmButtonLabel: "Test Button", text: "New API Test New alert API Test " };
var alertOptions = { height: 300, width: 600 };
Xrm.Navigation.openAlertDialog(message, alertOptions).then(
function success(result) {
console.log("Alert dialog closed");
},
function (error) {
console.log(error.message);
}
);
My requirements are
- I need multiple lines of text (need to be able to format text so I can create a line break)
- Need to be able to present text from a value from option set?
Is this possible to do with this code? I cant seem to be able to do this
Thanks for help!