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

Executes the select file command on this media tab.

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

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