Is This Content Helpful?
We're glad to know this article was helpful.
Subtypes are records in a table or feature class that have been grouped based on an attribute field. Subtypes are implemented by creating coded values and, therefore, must be associated with fields of the data type short or long integer. These integer values each represent a feature in the subtype. For example, the following codes in a subtype named RoadClass could represent valid classes in a feature class for streets:
Each subtype can have its own set of default values. In the above example, the local streets subtype could have the default value for a speed limit attribute set to 25 miles per hour, while the default value for the main streets subtype could be 35 miles per hour. Whenever a local street is added to the streets feature class, its speed limit attribute is automatically set to 25 miles per hour. Whenever a main street is added, the speed limit is set to the default of 35 miles per hour.
However, when modifying existing features in ArcGIS Online, editing the subtype field(s), the default values for the edited field do not get applied in the same manner as they do in ArcGIS Desktop. In the web map, when the subtype value is changed from the drop-down, the accompanying field is not automatically updated with the default value; it is instead left blank and requires the editor to select one of the available options.
There are three options that can be used as an alternative to this behavior:
Note: Feature templates define all the information required to create a feature: the layer where a feature is stored, the attributes a feature is created with, and the default tool used to create that feature. A layer can have multiple templates associated with it, where each template has different default settings. For example, if there is a roads layer with classifications of freeway, major highway, and local road, there could be three different templates, with each one having a different default attribute for the type of road. This makes it easier to create the new type of road needed from the start.