Hi All;
Still new to ArcPro and have been using QGIS so forgive me if I am missing an obvious answer here.
I am trying to set certain fields in a feature class to a variable so that when they are filled out in Collector the data collector doesn't have to fill out things like "User Name" and "Edit Data" every time and I cannot figure out how to do this. In QGIS if I set a fields default value to SQL and "now()" When a new feature is created that field will auto populate with the current datatime stamp. Also @user_account_name or @user_full_name as a default will auto populate those fields with the user name or user's full name in those fields.
Is there a way to do that in ArcPro for feature classes? Do the same variables work? Is there a list of default value variables for Esri products?
Thanks;
Tyler
Take a look at https://pro.arcgis.com/en/pro-app/tool-reference/data-management/assign-default-to-field.htm
But you should also take a look at domains: https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/view-and-edit-fields-domains-and-s...
And maybe attribute rules: https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm
Thanks for the reply, it looks like I need to do this through attribute rules and got it working for the datetime stamps but I cannot find a way to pull the current user and plug that variable into the user field. Is there a list of common use variables for field expressions?
Since you're working with a service in Collector, it sounds like you're looking for the built-in functionality of keeping track of who is editing. Check out https://doc.arcgis.com/en/arcgis-online/manage-data/manage-hosted-feature-layers.htm#ESRI_SECTION1_0...