<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How do I call upon a dependent dropdown field?</title><link>https://community.appian.com/discussions/f/new-to-appian/39618/how-do-i-call-upon-a-dependent-dropdown-field</link><description>Hi all! 
 New to Appian, and I am stuck on figuring out how to correct configure a dependent dropdown. 
 The first dropdown field is called &amp;quot;Plant,&amp;quot; and its fields consist of plantId, value, &amp;amp; description. The second dropdown field is called &amp;quot;Storage</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I call upon a dependent dropdown field?</title><link>https://community.appian.com/thread/151005?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 05:33:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa2741ca-f7ab-4153-b59d-eacdefec0466</guid><dc:creator>baji mekala</dc:creator><description>&lt;p&gt;Please refer to this link to configure cascading dropdowns.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/recipe-configure-cascading-dropdowns.html"&gt;https://docs.appian.com/suite/help/23.3/recipe-configure-cascading-dropdowns.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I call upon a dependent dropdown field?</title><link>https://community.appian.com/thread/151004?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 03:03:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dccdbc60-5122-4d73-9bb8-bfecf1e8d801</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Use the selected plantId to lookup its corresponding value field from plantData, then filter storageData where werks matches that value to populate the dependent Storage Location dropdown.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /* Sample Plant Data */
  local!plantData: {
    a!map(plantId: 1, value: &amp;quot;P100&amp;quot;, description: &amp;quot;Plant Chicago&amp;quot;),
    a!map(plantId: 2, value: &amp;quot;P200&amp;quot;, description: &amp;quot;Plant Dallas&amp;quot;),
    a!map(plantId: 3, value: &amp;quot;P300&amp;quot;, description: &amp;quot;Plant Boston&amp;quot;)
  },
  /* Sample Storage Location Data */
  local!storageData: {
    a!map(werks: &amp;quot;P100&amp;quot;, name1: &amp;quot;Warehouse A&amp;quot;, land1: &amp;quot;USA&amp;quot;),
    a!map(werks: &amp;quot;P100&amp;quot;, name1: &amp;quot;Warehouse B&amp;quot;, land1: &amp;quot;USA&amp;quot;),
    a!map(werks: &amp;quot;P200&amp;quot;, name1: &amp;quot;Storage Unit 1&amp;quot;, land1: &amp;quot;USA&amp;quot;),
    a!map(werks: &amp;quot;P200&amp;quot;, name1: &amp;quot;Storage Unit 2&amp;quot;, land1: &amp;quot;USA&amp;quot;),
    a!map(werks: &amp;quot;P300&amp;quot;, name1: &amp;quot;Depot North&amp;quot;, land1: &amp;quot;USA&amp;quot;),
    a!map(werks: &amp;quot;P300&amp;quot;, name1: &amp;quot;Depot South&amp;quot;, land1: &amp;quot;USA&amp;quot;)
  },
  /* Variables to store selections */
  local!selectedPlantId: null,
  local!selectedStorageLocation: null,
  /* Get the value field of selected plant */
  local!selectedPlantValue: if(
    a!isNullOrEmpty(local!selectedPlantId),
    null,
    index(
      local!plantData.value,
      wherecontains(local!selectedPlantId, local!plantData.plantId),
      null
    )
  ),
  /* Filter storage locations based on selected plant */
  local!filteredStorageLocations: if(
    a!isNullOrEmpty(local!selectedPlantValue),
    {},
    index(
      local!storageData,
      wherecontains(local!selectedPlantValue, local!storageData.werks),
      {}
    )
  ),
  /* Form Layout */
  a!formLayout(
    titleBar: &amp;quot;Plant and Storage Selection&amp;quot;,
    contents: {
      /* Plant Dropdown */
      a!dropdownField(
        label: &amp;quot;Plant&amp;quot;,
        placeholder: &amp;quot;-- Select Plant --&amp;quot;,
        choiceLabels: local!plantData.description,
        choiceValues: local!plantData.plantId,
        value: local!selectedPlantId,
        saveInto: {
          local!selectedPlantId,
          a!save(local!selectedStorageLocation, null)
        },
        required: true
      ),
      /* Storage Location Dropdown - FIXED */
      a!dropdownField(
        label: &amp;quot;Storage Location&amp;quot;,
        placeholder: &amp;quot;-- Select Storage Location --&amp;quot;,
        disabled: a!isNullOrEmpty(local!selectedPlantId),
        choiceLabels: if(
          a!isNullOrEmpty(local!filteredStorageLocations),
          {},
          local!filteredStorageLocations.name1
        ),
        choiceValues: if(
          a!isNullOrEmpty(local!filteredStorageLocations),
          {},
          local!filteredStorageLocations.name1
        ),
        value: local!selectedStorageLocation,
        saveInto: local!selectedStorageLocation,
        required: true
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I call upon a dependent dropdown field?</title><link>https://community.appian.com/thread/151003?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 23:56:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e06a7a9-dad1-43aa-b164-fe176965b4af</guid><dc:creator>osanchea</dc:creator><description>&lt;p&gt;Hi. If you need to display data from the &amp;quot;Storage Location&amp;quot; table that depends on the &amp;quot;Plant&amp;quot; table, the &amp;quot;Storage Location&amp;quot; table should include a field that serves as a foreign key referencing plantId in the &amp;quot;Plant&amp;quot; table.&lt;br /&gt;Please refer to this link to configure cascading dropdowns:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/25.3/recipe-configure-cascading-dropdowns.html"&gt;https://docs.appian.com/suite/help/25.3/recipe-configure-cascading-dropdowns.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>