<?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>Want selected Choice Label from selected dropdown</title><link>https://community.appian.com/discussions/f/user-interface/12351/want-selected-choice-label-from-selected-dropdown</link><description>Hi , 
 
 I want choice label value also in drop down. But as per dropdown api we can save only choice value. 
 
 a!dropdownField( label: &amp;quot;Existing Tests&amp;quot;, placeholderLabel: &amp;quot;-- Select Test --&amp;quot;, choiceLabels: local!existingTests.name, choiceValues: local</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Want selected Choice Label from selected dropdown</title><link>https://community.appian.com/thread/54727?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:23:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6efaa69a-3f08-4b7e-bd6b-678958e51c1e</guid><dc:creator>dipaki</dc:creator><description>If you want the id and name both to be in selected value, you can try this&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
choiceLabels: local!existingTests.name,&lt;br /&gt;
choiceValues: local!existingTests,&lt;br /&gt;
value: local!selectedTest,&lt;br /&gt;
saveInto: local!selectedTest,&lt;br /&gt;
...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want selected Choice Label from selected dropdown</title><link>https://community.appian.com/thread/54726?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:20:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40ec47ee-5fba-4dea-a41c-391525c2e15d</guid><dc:creator>Aditya</dc:creator><description>write your code inside with()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want selected Choice Label from selected dropdown</title><link>https://community.appian.com/thread/54724?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:11:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b447440-6a08-49a2-be4e-747bca4e88bf</guid><dc:creator>sauravk</dc:creator><description>Thanks. One more small doubt if click on another option n then come back again on this drop down then how can i refresh this drop down&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want selected Choice Label from selected dropdown</title><link>https://community.appian.com/thread/54719?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 10:50:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:add172bc-f70d-4938-b1cd-b8277a7a9eba</guid><dc:creator>Jayapriya Muthu</dc:creator><description>If you want only the label and no need of the id in future means we can have the same label as choice values (choiceValues: local!existingTests.name)&lt;br /&gt;
&lt;br /&gt;
or will go with the expression &lt;br /&gt;
&lt;br /&gt;
index(local!existingTests.name,wherecontains(local!selectedTest, local!existingTests.id),null)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>