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 which allows the user to choose one of the actions.
Arguments
Argument
Type
Description
success
function(obj)
The callback function that is called with chosen item string.
failed
function(errorMsg)
The errorCallback which is called asynchronously in case of error.
scope
Object
The scope for callbacks.
This example demonstrates how to create and display the message box with buttons "YES" and "No".MobileCRM.UI.MessageBox object.
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;popup.show(function(button){if(button=="Yes")MobileCRM.bridge.alert("You taped on 'Yes' button");elseMobileCRM.bridge.alert("You taped on 'NO' button");return;});