Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

text in alert dialog (Xrm.Navigation.openAlertDialog)

$
0
0

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!


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>