[GIS] Use Field List from Input Feature Class as Parameter in ArcGIS ModelBuilder

arcgis-10.3arcgis-desktopmodelbuilderparameters

I set up a model that shall use an attribute field from a given feature class as a parameter. The feature class is a model parameter by itself and I want the user to choose the feature class first and then one attribute field from the ones contained within this chosen feature class. The only working way right now is to type the correct field name, but what if the user does not know the name and just wants to choose from a list? This is my model with the input mask:

enter image description here
enter image description here

I want the "Dissolve Field" to be a list of all available attributes from the input polygons, but I get an empty dropdown, since I don't know how to tell the model to read all field names and parse them to the dropdown menu.

This is specifically for using the model builder, NOT for a python script, where I know that you can do stuff like this with the "Validation" tab in the properties.

Using field parameters in calculate field is not exactly what I'm looking for, if I got the question right.

Best Answer

I've manage to do that through this workaround (see images below):

Note: You can access the Get Field Value Tool through Insert > Model Only Tools

Model Builder view

Tool GUI

Related Question