Hi all,
I am working on a quite simple form in Field Maps and trying to pull EXIF metadata of attached photographs into the form. This would be especially helpful for the date/time of the photographs. I am now using the simple 'Now()' expression, but this would of course return the current time (when one's using the form).
My current expression (see below) returns the correct value when I am designing the form. However, when I am using the Field Maps app on my phone and take a new photograph, an error is returned. Any ideas on what I am doing wrong?
var features = [];
var att = attachments($feature, {metadata: True});
if (count(att) > 0) {
for (var a in att) {
push(features, att[a].exifInfo)
}}
//return features;
return features[0][0]['tags'][6]['value'];