Skip to content

MobileCRM.UI.MediaTab.setEditable

rescocrm edited this page Aug 2, 2024 · 10 revisions

[v11.1] Marks the MediaTab as editable.

Arguments

Argument Type Description
editable Boolean Indicates whether to mark MediaTab as editable.
errorCallback function(errorMsg) The errorCallback which is called in case of error.

This example demonstrates how to set the media tab editable or read-only.

MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
	// get media tab by its name
	var media = entityForm.getMediaTab("DocumentAction");
	media.setEditable(true, MobileCRM.bridge.alert); // set false to make it read-only
}, MobileCRM.bridge.alert, null);

Clone this wiki locally