Skip to content

MobileCRM.UI.MediaTab.capturePhoto

rescocrm edited this page Aug 2, 2024 · 10 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