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

Clears the content of this media tab.

This example demonstrates how to clear the media tab content.

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