Hi there Field Maps community,
I am using the newly released calculated expressions in my forms. I want to calculate Ha so it shows in the pop-up and also writes into the table. My basemap is NZTM.
I'm having some issues though. My results are inconsistent. Sometimes it works, sometimes it doesn't. I am basic level arcade, so it could be that I haven't written the expression correctly. Whenever I test either expression in the Arcade Expression pop-out, the result shows correctly. I've used two different expressions so far. Sometimes it works for others, but not me. I have tried:
- using different expressions to get the same answer
- going incognito
- getting someone else to test
It is inconsistent in the sense that the isempty expression worked for another user, then I tried it, and it worked for a day, now it doesn't populate anymore.
I reverted back to my original expression, and then it started to work (it hadn't worked before), but after a day, it stopped working.
Is there a best way to write this expression so it always works, is there something corrupt in my web map or is there a bug in the form?
These are the expressions I've been using.
if (IsEmpty(Geometry($feature))){
return;
}
else{
return round(Area($feature, 'hectares'),2)
}
Round($feature["Shape__Area"]/10000,2)
If there are any Field Maps developers watching the posts, I'd be happy to add you to a group to test my web map directly. This web map then gets embedded into an Experience Builder and the end user uses the Edit widget to add a feature.
Another question I have is, should I always be able to preview the calculation when I'm filling in the form? Sometimes I can see it, sometimes I can't(but it outputs correctly), other times it just doesn't calculate.
Thanks in advance for your help.