Last active
September 2, 2020 18:18
-
-
Save kevinhillinger/33a4cfffeaaf4b899669285f5a3c08e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); })(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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