<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create a dependency for a field variable in ModelBuilder? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1386915#M79320</link>
    <description>&lt;P&gt;Thank you Ed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have quite a bit of experience with Python and have set up dependencies successfully with it. This was my first time trying to set one up with ModelBuilder &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 18:08:10 GMT</pubDate>
    <dc:creator>RandyMcGregor_BMcD</dc:creator>
    <dc:date>2024-02-26T18:08:10Z</dc:date>
    <item>
      <title>Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382561#M78802</link>
      <description>&lt;P&gt;I'm sure this is quite simple, but I'm missing something. I want to provide the option to select a field in a model. I have added a field variable, but I don't see any way to provide a layer to populate the fields.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyMcGregor_BMcD_0-1707948636685.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94821iEF1BAE4DA1E097ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RandyMcGregor_BMcD_0-1707948636685.png" alt="RandyMcGregor_BMcD_0-1707948636685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the tool's properties, I can see this as a parameter, but the 'Dependency' option is unresponsive.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyMcGregor_BMcD_1-1707948812662.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94822i0BD5369264EAF735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RandyMcGregor_BMcD_1-1707948812662.png" alt="RandyMcGregor_BMcD_1-1707948812662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How does one plug a layer into a field variable?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 22:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382561#M78802</guid>
      <dc:creator>RandyMcGregor_BMcD</dc:creator>
      <dc:date>2024-02-14T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382587#M78808</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/model-parameters.htm" target="_blank"&gt;Model parameters—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Dependency&lt;BR /&gt;You can make a parameter dependent on another parameter. The typical use for this is to make one parameter that accepts an attribute field dependent on another parameter that is a feature class or table; the field parameter will include a drop-down list of attribute fields from the dependent parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which means that you have to provide the featureclass first&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 22:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382587#M78808</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-02-14T22:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382859#M78849</link>
      <description>&lt;P&gt;Hello Randy&lt;/P&gt;&lt;P&gt;This has got me thinking because, just like you, I can not set the"dependency" up in a model - it is grayed out in the &lt;EM&gt;Model Properties&lt;/EM&gt; dialog ; &lt;STRONG&gt;Parameters&lt;/STRONG&gt; tab, just as you report.&lt;/P&gt;&lt;P&gt;I will see if I can make contact with the ModelBuilder team to see why this is and I will report back to this thread.&lt;/P&gt;&lt;P&gt;As a workaround.... how is your Python scripting? The &lt;EM&gt;dependency&lt;/EM&gt; does work in a Python Script tool, for example:&lt;/P&gt;&lt;P&gt;1: Create a Python Script tool in a custom toolbox (Right click a custom toolbox or the project's default toolbox and choose &lt;STRONG&gt;New&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Script&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;2: Fill in the &lt;STRONG&gt;&lt;EM&gt;Name&lt;/EM&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;EM&gt;Label&lt;/EM&gt; &lt;/STRONG&gt;text boxes on the &lt;EM&gt;General&lt;/EM&gt; tab.&lt;/P&gt;&lt;P&gt;3: Click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; tab.&lt;/P&gt;&lt;P&gt;4: Create 2 parameters as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdMorris_0-1708010983673.png" style="width: 509px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94891i13A5F743035EF648/image-dimensions/509x131?v=v2" width="509" height="131" role="button" title="EdMorris_0-1708010983673.png" alt="EdMorris_0-1708010983673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice the &lt;EM&gt;data types&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;5: For the attribute field parameter scroll until you see the &lt;EM&gt;Dependency&lt;/EM&gt; property.&lt;/P&gt;&lt;P&gt;6: Click in the &lt;STRONG&gt;Dependency&lt;/STRONG&gt; property for the Attribute field parameter and select the feature layer parameter name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdMorris_1-1708011175879.png" style="width: 455px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94892iA7200AD6D1E36168/image-dimensions/455x113?v=v2" width="455" height="113" role="button" title="EdMorris_1-1708011175879.png" alt="EdMorris_1-1708011175879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This should set up the dependency of the Field parameter to display the attribute fields of the chosen feature layer.&lt;/P&gt;&lt;P&gt;7: Press the &lt;STRONG&gt;OK&lt;/STRONG&gt; button on the &lt;EM&gt;New Script&lt;/EM&gt; dialog to create your script tool.&lt;/P&gt;&lt;P&gt;8: Double click the script tool to display the dialog. You should see 2 parameters:&lt;/P&gt;&lt;P&gt;9: Choose the input feature layer (or feature class) and the Choose attribute field parameter should then be populated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdMorris_2-1708011395146.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94893iC45A74C5BD0F51A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdMorris_2-1708011395146.png" alt="EdMorris_2-1708011395146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I ask how are your Python skills as you would need to convert you model to a Python script to take advantage of the above. You would need to use &lt;STRONG&gt;arcpy.GetParameterAsText()&lt;/STRONG&gt; to pass in the user choices on the dialog into your script.&lt;/P&gt;&lt;P&gt;I hope this helps.... thanks ed&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1382859#M78849</guid>
      <dc:creator>EdMorris</dc:creator>
      <dc:date>2024-02-15T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1386915#M79320</link>
      <description>&lt;P&gt;Thank you Ed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have quite a bit of experience with Python and have set up dependencies successfully with it. This was my first time trying to set one up with ModelBuilder &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1386915#M79320</guid>
      <dc:creator>RandyMcGregor_BMcD</dc:creator>
      <dc:date>2024-02-26T18:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1641330#M98121</link>
      <description>&lt;P&gt;Hi Ed, do you have any update on this functionality? I'm running ArcGIS Pro 3.5 and have found that I'm still not able to set up field dependencies. I've got a ton of experience with Python scripting, but for simple workflows, I prefer to use model builder because I'm building tools for a larger team and would like these simple workflows to be easily maintained by staff that aren't so familiar with scripting. It seems like this is a pretty core feature if Esri would like to offer Model Builder as a viable alternative to scripting in Python. Thanks for looking in to it!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 18:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1641330#M98121</guid>
      <dc:creator>dribrats</dc:creator>
      <dc:date>2025-08-12T18:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dependency for a field variable in ModelBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1643218#M98329</link>
      <description>&lt;P&gt;I have a model that asks for the route id field after the route features have been chosen. Should be a drop-down, but I can't get it to work as a dropdown, so you have to type the name of the field in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-dependency-for-a-field-variable-in/m-p/1643218#M98329</guid>
      <dc:creator>RandyMcGregor_BMcD</dc:creator>
      <dc:date>2025-08-19T12:35:49Z</dc:date>
    </item>
  </channel>
</rss>

