You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rescocrm edited this page May 15, 2023
·
9 revisions
Shows a popup window allowing user to choose one of actions.
This example demonstrates how to create and display the message box with buttons "YES" and "No".
// 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+).functionconfirmMsg(title){return__awaiter(this,void0,void0,function*(){varpopup=newMobileCRM.UI.MessageBox(title);/// Add the buttons for message boxpopup.items=["Yes","No"];/// If title is too long set the 'multi-line' to truepopup.multiLine=true;varbutton=yieldpopup.showAsync();if(button=="Yes")MobileCRM.bridge.alert("You taped on 'Yes' button");elseMobileCRM.bridge.alert("You taped on 'NO' button");});}