<?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>Dropdown field issue</title><link>https://community.appian.com/discussions/f/general/14022/dropdown-field-issue</link><description>Hi Team, 
 Please find attachment 
 I&amp;#39;m working in 16.1. I have a requirement to display the dropdown values in the below format. 
 I used the below code, but its not giving the exact result as needed. 
 when you run the code it is displaying in the dropdown</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dropdown field issue</title><link>https://community.appian.com/thread/63592?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 20:17:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee388035-78a2-486d-a1d1-e5079fe2b55e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I would just add that if you want to manually create a string array, this is not the correct syntax (unless it&amp;#39;s being given to you from elsewhere, in which case the previous replies will work).&lt;br /&gt; &lt;br /&gt; But otherwise you probably want:&lt;br /&gt; {&amp;quot;AA&amp;quot;, &amp;quot;BB&amp;quot;, &amp;quot;CC&amp;quot;, &amp;quot;DD&amp;quot;, &amp;quot;FFF&amp;quot;, &amp;quot;GG&amp;quot;, &amp;quot;HHH&amp;quot;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown field issue</title><link>https://community.appian.com/thread/63569?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 07:34:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bef7d3b3-1946-435f-9e08-a3cd8f2d0377</guid><dc:creator>rameshm468</dc:creator><description>Thank you bhanu and vimalkumar.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown field issue</title><link>https://community.appian.com/thread/63563?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 06:13:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2121cbd-92f9-44ba-b7d4-f68751eb7a1e</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Hi rameshm468,&lt;/p&gt;
&lt;p&gt;Are you looking for the something similar to how the below code works?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!dpvalues,
  local!choiceList: split({&amp;quot;AA|BB|CC|DD|FFF|GG|HHH&amp;quot;}, &amp;quot;|&amp;quot;),
  a!sectionLayout(
    firstColumnContents: {
      a!dropdownField(
             label:&amp;quot;TEST&amp;quot;,
             labelPosition:{},
             placeholderLabel:&amp;quot;---&amp;quot;,
             choiceLabels:local!choiceList,
             choiceValues:local!choiceList,
             value:local!dpvalues,
             saveInto:local!dpvalues
      )
    },
    secondColumnContents: {
       /*Add components here for a two-column section */
    },
    validations: {}
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown field issue</title><link>https://community.appian.com/thread/63561?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 06:06:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e40e778a-d1be-4cd3-9d27-c909ce673422</guid><dc:creator>bhanuprakash1303</dc:creator><description>Hi Ramesh,&lt;br /&gt;
&lt;br /&gt;
You can use split funtion the choiceValues and choiceLabels&lt;br /&gt;
&lt;br /&gt;
choiceLabels: split({&amp;quot;AA|BB|CC|DD|FFF|GG|HHH&amp;quot;},&amp;quot;|&amp;quot;),&lt;br /&gt;
choiceValues: split({&amp;quot;AA|BB|CC|DD|FFF|GG|HHH&amp;quot;},&amp;quot;|&amp;quot;),&lt;br /&gt;
&lt;br /&gt;
then it will display as expected.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Bhanu&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>