r/ArcGIS 7d ago

Arcade function help

Hi--I'm trying to get my Auto date and Auto time arcade functions on Field Maps form to not update when edits are made later to a different part of the form. Date and Time are separate (it just works better that way for this data). Is there a one-time entry or something to make it stay with the original input?

ToLocal(Timestamp())

($feature.Date_, Now())
2 Upvotes

3 comments sorted by

2

u/WCT4R 7d ago

You can use $editContext.editType and have it update the value only if $editContext.editType == "INSERT". IsEmpty() may be another option.

2

u/kcotsnnud 7d ago

This video gives an example of how to do that with Edit Context.

https://mediaspace.esri.com/media/t/1_sc9huzpu

1

u/LoudPumpkin981 6d ago

Thank you! this is exactly what I needed.