Hello ArcGIS Field Maps Team,
We recently observed an issue with the Arcade's "DateOnly" (https://developers.arcgis.com/arcade/guide/types/#dateonly ) function in your application.
When adding DateOnly to our Arcade expression the entrire expression does not display in Field Maps but does display in Map Viewer with no issues. Example below.
Arcade Expression:
Map Viewer:
Field Maps:
When removing the DateOnly function, the Arcade expression works with no issues in Field Maps:
Is this a known bug?
Thanks,
Amanda Huber
Solved! Go to Solution.
In Field Maps click profile > About Field Maps > ArcGIS Runtime SDK for iOS. It directs you to a 1.15 SDK page, which is where I drew the conclusion it's on 1.19 Arcade.
@ChrisDunn1 confirms this in a separate comment on this thread and indicates that an upcoming release of field maps will be on the 200 Runtime SDK and a newer release of Arcade as well. I assume that they're doing a big release soon - and we're seeing some cool stuff on the horizon like Tasks and improvements to forms.
Is there a more straightforward resource? Not that I'm aware. I've got a rough grasp on which products push the envelope first (ArcGIS Online) and which ones drag their feet a bit. So when some new cool Arcade function comes out, I don't expect it to work across the platform, and do a bit of digging when considering applying it. Some products it's easier e.g. ArcGIS Enterprise. Other times difficult, like QuickCapture or Field Maps...
Not sure re that function, but the red underline of Area indicates that there may be an issue with the variables. Maybe it's not a field maps issue but just an exception? I find we don't get errors in ArcGIS Online but do in Field Maps, in instances where the expression doesn't return a value. AGOL seems better at handling it by doing nothing where field maps breaks.
@Amanda__Huber - this is the correct answer. The DateOnly() function is not currently supported in Field Maps. You can test out Field Maps built on the 200.x version of the Maps SDK, which includes support for newer Arcade functions, by following the instructions provided at the bottom of this blog post: https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/whats-new-in-arcgis-field-maps-j...
Thanks @ChrisDunn1 .
As an alternative, try using text function to format the date?
https://developers.arcgis.com/arcade/function-reference/text_functions/#text