Skip to content

Instantly share code, notes, and snippets.

@kevinhillinger
Last active September 2, 2020 18:18
Show Gist options
  • Save kevinhillinger/33a4cfffeaaf4b899669285f5a3c08e3 to your computer and use it in GitHub Desktop.
Save kevinhillinger/33a4cfffeaaf4b899669285f5a3c08e3 to your computer and use it in GitHub Desktop.
javascript:(function() { function getText() { var text = $('textarea[data-id*=description]').text(); return text; }  function viewDescription() { var alertText = { text: getText(), title: "Description" }; var alertOptions = { height: '90%', width: '90%' }; Xrm.Navigation.openAlertDialog(alertText, alertOptions); setTimeout(() => $('span[id*=dialogMessageTextLine]').css('margin-top', '5px'), 300); }  viewDescription(); })();
function getText() {
var text = $('textarea[data-id*=description]').text();
return text;
}
function viewDescription() {
var alertText = {
text: getText(),
title: "Description"
};
var alertOptions = { height: '90%', width: '90%' };
Xrm.Navigation.openAlertDialog(alertText, alertOptions).then(
function success(result) {
console.log("Alert dialog closed");
},
function (error) {
console.log(error.message);
}
);
setTimeout(() => $('span[id*=dialogMessageTextLine]')
.css('margin-top', '5px'), 300);
}
viewDescription();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment