Hello,
So I have a bunch of feature classes for animal observations and folks do surveys and use Field Maps to collect a point for whatever animal they see and enter some data about it. The feature class is ultimately on an ArcGIS Server in an Enterprise Geodatabase so it is not a hosted feature service so I can't set the template within the Field Maps web app.
In the Enterprise Geodatabase, the default values are set for two fields that 95% of the time stay as the default value. I tried doing an arcade expression but that makes it impossible to edit the field at all. So I was wondering if anyone had a workaround to applying default values to a non-hosted feature service?
Thanks!
Solved! Go to Solution.
YES! With some help from ESRI Support we were able to figure it out. And once I did this workflow once I have not had to do it again. I work in Pro primarily but imagine a lot of the same windows exist in Desktop too.
Click Manage Templates under Edit Ribbon.
Select the feature and go to properties. Then in the properties window select attributes:
As you can see from my example the Default value is Collar with a 0 to indicate that the animal doesn't have a collar which applies to 99% of rows. What I had to do was just use that text field, enter in a space and then delete the space. Then overwrite the feature service on the server and double check that the default value is appearing in field maps.
No idea why it works like this, but it solved my specific problem! Let me know if you have any questions.
I'd recommend setting default values at the database level instead of the feature service level. You're able to set default values for feature classes within ArcMap/ArcGIS Pro.
Thanks for the reply, they are already set up with default values within the Geodatabase. The default values do not show up in Field Maps.
Hi did you ever get an answer to this question? Running into the same issue.
YES! With some help from ESRI Support we were able to figure it out. And once I did this workflow once I have not had to do it again. I work in Pro primarily but imagine a lot of the same windows exist in Desktop too.
Click Manage Templates under Edit Ribbon.
Select the feature and go to properties. Then in the properties window select attributes:
As you can see from my example the Default value is Collar with a 0 to indicate that the animal doesn't have a collar which applies to 99% of rows. What I had to do was just use that text field, enter in a space and then delete the space. Then overwrite the feature service on the server and double check that the default value is appearing in field maps.
No idea why it works like this, but it solved my specific problem! Let me know if you have any questions.