-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.UI.EntityForm.maximizeView
rescocrm edited this page May 15, 2023
·
9 revisions
[v8.1] Makes the passed view maximized/restored.
| Argument | Type | Description |
|---|---|---|
| viewName | String | The name of the view which has to be maximized/restored. |
| maximize | Boolean | true, to maximize the view; false, to restore it. |
This options works only if the flexi form is enabled (new UI). This example demonstrates how to make sure that the view is maximized.
var viewName = "MyView";
MobileCRM.UI.EntityForm.isViewMaximized(viewName, function (isMaximized) {
if (!isMaximized)
MobileCRM.UI.EntityForm.maximizeView(viewName, true);
}, MobileCRM.bridge.alert);