Prevent users from uploading photos from the device gallery

This example will enforce users to take a new photo instead of uploading photos from the gallery.

ON('load-record', function() { var config = { media_gallery_enabled: false }; SETFORMATTRIBUTES(config); });

Did this page help you?