Skip to content

MobileCRM.UI.MessageBox.sayTextAsync

rescocrm edited this page May 15, 2023 · 9 revisions

Shows a simple popup window with a multi-line text.

Arguments

Argument Type Description
text String A text to be shown.

This example demonstrates how to display simple popup with multi-line text.

return __awaiter(this, void 0, void 0, function* () {
	// WARNING: async/await pattern requires ECMAScript 6 and it's not supported on Internet Explorer.
	// It's supported by all modern browsers including mobile version of Chrome and Safari (requires Android 5+ and iOS 10+).
	var text = "Thank you for using this method\nPress OK to continue.";
	yield MobileCRM.UI.MessageBox.sayText(text);
	// ... execution continues after user closes the message box
});
Clone this wiki locally