MobileCRM.UI.EntityForm.maximizeView - Resconet/JSBridge GitHub Wiki

[v8.1] Makes the passed view maximized/restored.

Arguments

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);