If I have a field, like a survey creation date, it should possible to set it to be today's date without the user needing to open a separate dialog box and then confirm todays date. this will reduce the number of clicks the users needs to have with the form.
@DougMorgenthaler Thanks ,
Can you collaborate please , how its implemented ? It is release in ArcGIS 10.9.1 portal or only in ArcGIS online ?
I think the answer is use form calculations to do this. There were release in the product in the March release. It is only in ArcGIS Online at the moment.
I checked this out the changes in the March release and it in some situations it works, but calculations can't be edited by the Field Maps user. So its great if your form only needs the current date and time, but if the user wants to change that date or time, that's not possible. At least from what I noticed. Anyone else try this out (maybe I'm wrong)?
This feature is a must have.
Has this been implemented and is it editable after the fact?
Is it supported by field maps mobile? Yes. Is it implemented so you can set it up easily directly in the user interface as of Mid October 2022? No. You will need to configure and assign an editableExpression to the Date field using the ArcGIS Python API or AGO Assistant at the moment.
Below the Date field is calculated and editable after the fact. This is achieved with an editableExpression on the Date field. In this case I just tied editability of the Date field to the state of a switch, but you don't have to. You could just as easily say something like "if Date field Null then calc date otherwise allow the user to edit the Date field". That logic would be achieved with a valueExpression/EditableExpression combo on the Date field.
Hi Doug,
I haven't noticed any changes as a result of the implementation that you specified in your post (25-4-22)...
I just checked Field Maps - the smart form that I created is still using a default date of 1899. Our koala rescue volunteers still have to remember to select the date and then switch to Today's date.
Just like everyone else, I am keen for the date field in Field Maps to default to Today, yet remain editable. (I have Editor Tracking turned on as a backup)
I am putting in a date/time field and want the current time and date of collection, preferably non-editable in our case. Is there a place to enable current date time?
Thanks for any help!
While configuring the form for your date field you can simply add the following field calculation.
// Current Date for an insert on current_date field
return Now()
or you want to prevent it from changing if you are editing the feature
// set current_date only if it isn't already set
IIF(IsEmpty($feature.current_date), Now(), $feature.current_date)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.