Skip to content

MobileCRM.UI.MediaTab.capturePhoto

rescocrm edited this page May 15, 2023 · 9 revisions

Captures photo on this media tab.

This example demonstrates how to initiate photo capture on the media tab.

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