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

[v8.0] Selects the form tab by its name.

Arguments

Argument Type Description
tabName String The name of the tab.
errorCallback function(errorMsg) The errorCallback which is called asynchronously in case of error.
scope Object The scope for callback.

This example demonstrates how to select the associated contacts tab on the account entity form.

MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
	entityForm.selectTab(
	// The name of the associated contacts tab consists of the entity logical name,
	// the lookup field name and the source entity name.
	"contact.parentcustomerid.account", MobileCRM.bridge.alert);
}, MobileCRM.bridge.alert, null);