<?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 selections</title><link>https://community.appian.com/discussions/f/general/20158/multi-drop-down-selections</link><description>Hi team, 
 My use case requires me to select multiple options like: north, south, east ,west which am able to configure and it&amp;#39;s working perfectly. 
 But there should also be an option to select all(I.e North, south, east, west) and based on it data should</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: multi drop down selections</title><link>https://community.appian.com/thread/78751?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 05:18:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:436f1606-069b-45ea-b46a-6d852877e2ca</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think this piece of code should work for you&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!choiceLabels: { &amp;quot;All&amp;quot;, &amp;quot;East&amp;quot;, &amp;quot;West&amp;quot;, &amp;quot;North&amp;quot;, &amp;quot;South&amp;quot; },
  local!choiceValues: { 0, 1, 2, 3, 4 },
  local!dropDownValue,
  local!value,
  a!multipleDropdownField(
    choiceLabels: local!choiceLabels,
    choiceValues: local!choiceValues,
    value: local!value,
    saveInto: {
      a!save(
        local!value,
        if(
          contains(
            save!value,
            index(local!choiceValues, 1, {})
          ),
          0,
          save!value
        )
      ),
      a!save(
        local!dropDownValue,
        if(
          contains(
            save!value,
            index(local!choiceValues, 1, {})
          ),
          remove(local!choiceValues, 1),
          save!value
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In this, I have added an &amp;quot;All&amp;quot; label in the first index of the array of labels and values, and because of that, I have taken two variables. One for showing the correct value in the dropdown and the second one is to refer to other places where the value is required.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>