Is there a way to make it so that when a user wants to edit a date attribute for a selected feature, the current date automatically shows as a preset. I tried setting this in the attribute actions (preset) and smart actions tabs using an expression to have the date equal the current date but it keeps showing what is already in the attribute (previous dates).
Another option is to make it so the user is forced to change a particular attribute in the form.
Any help is greatly appreciated!
Good morning Alix! I see why it did not work...
The preset values are only applicable to new feature creation. Presets do not apply when updating existing features.
I need something to be able to force the user to update the date when updating a feature, since I cannot automatically populate an existing one with the current date.
Also, while it is not currently possible to trigger an update on a Preset Attribute Actions in Smart Editor, you may be able to use the following workaround for what you are trying to do: keep track of created and updated features, see the associated documentation here.
By enabling this capability on your layer from the item settings, fields are added to your layer with the last edited date and the editor's username.