<?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>Multi Drop Down Validation</title><link>https://community.appian.com/discussions/f/new-to-appian/24031/multi-drop-down-validation</link><description>Hi Friends, 
 Please look at the screenshot. There is a two rows. In that two rows should validate when the two rows are equal. So what i am planning in the &amp;quot;Department&amp;quot; section. When i used &amp;quot;Corporate&amp;quot; in the dropdown then it should not come in the second</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Multi Drop Down Validation</title><link>https://community.appian.com/thread/92605?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 12:35:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68ff6436-78de-454d-94d4-2ae1c1aa36e4</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You can add a validation when a single value has been selected more than once. You can use wherecontains function and use it on the CDT/Dict field. If it returns more than one item, then you could show a validation.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi Drop Down Validation</title><link>https://community.appian.com/thread/92604?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 12:15:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ecfe40d-3466-42b3-a44e-0a2a33bfc703</guid><dc:creator>snbanavath</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!savedValueIndex,
  local!firstDropdownSavedValue,
  local!secondDropdownSavedValue,
  local!choiceLabels1: {
    &amp;quot;Corporate&amp;quot;,
    &amp;quot;Engineer&amp;quot;,
  },
  local!choiceValues1: { 1, 2 },
  local!choiceLabels2: {
    &amp;quot;Corporate&amp;quot;,
    &amp;quot;Engineer&amp;quot;,
  },
  local!choiceValues2: { 1, 2},
  {
    a!dropdownField(
      label: &amp;quot;Dropdown&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
      choiceLabels: local!choiceLabels1,
      choiceValues: local!choiceValues1,
      value: local!firstDropdownSavedValue,
      saveInto: {
        a!save(local!savedValueIndex, index(local!choiceValues1, save!value, null)),
        a!save(local!firstDropdownSavedValue, save!value)
      },
      searchDisplay: &amp;quot;AUTO&amp;quot;,
      validations: {}
    ),
    a!dropdownField(
      label: &amp;quot;Dropdown&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
      choiceLabels: if(
        a!isNullOrEmpty(local!savedValueIndex),
        local!choiceLabels2,
        remove(local!choiceLabels2, local!savedValueIndex)
      ),
      choiceValues: if(
        a!isNullOrEmpty(local!savedValueIndex),
        local!choiceValues2,
        remove(local!choiceValues2, local!savedValueIndex)
      ),
      saveInto: {
        a!save(local!secondDropdownSavedValue, save!value)
      },
      searchDisplay: &amp;quot;AUTO&amp;quot;,
      validations: {},
      value: local!secondDropdownSavedValue
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please refer the code to figure out the logic to conditionally manage the choice labels and values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi Drop Down Validation</title><link>https://community.appian.com/thread/92602?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 11:44:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e79b410-4b04-4aba-8c48-165376a038ca</guid><dc:creator>snbanavath</dc:creator><description>&lt;p&gt;You can conditionally manage the choice labels in the second dropdown based on the value selected at the first dropdown.&amp;nbsp;&lt;br /&gt;can you share the code of the dropdown components, so that the community could get better insight of the use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>