MobileCRM.UI.MediaTab.selectPhoto - Resconet/JSBridge GitHub Wiki

Executes the select photo command on this media tab.

Example demonstrate how to execute the select photo command on media tab.

MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
	// get media tab by its name
	var media = entityForm.getMediaTab("DocumentAction");
	media.selectPhoto();
}, MobileCRM.bridge.alert, null);