<?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 choicelabels and choicevalues</title><link>https://community.appian.com/discussions/f/data/26211/dropdown-choicelabels-and-choicevalues</link><description>Hello everyone I am new to Appian and I wanted add data from a recordtype to the dropdown but I can&amp;#39;t seem to figure it out. I tried different ways but I&amp;#39;ve got nothing. Can anyone asisst?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dropdown choicelabels and choicevalues</title><link>https://community.appian.com/thread/102863?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 17:45:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f49cb399-abac-4f4e-94d8-bdf255714611</guid><dc:creator>TByrdHumanIT</dc:creator><description>&lt;p&gt;Thanks I will try that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown choicelabels and choicevalues</title><link>https://community.appian.com/thread/102859?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 16:03:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a5e869f-9570-4640-bb14-7479f0eea717</guid><dc:creator>Sandya</dc:creator><description>&lt;p&gt;Yes, just gave sample one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown choicelabels and choicevalues</title><link>https://community.appian.com/thread/102858?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 16:01:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:333bdb56-ef80-4778-b504-21441afb1887</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Hi, Sandya instead of querying the data twice we can call it in the local variable and then index it in choice labels and values.&lt;/p&gt;
&lt;p&gt;And we can insert the code using the code box.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1665590519880v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown choicelabels and choicevalues</title><link>https://community.appian.com/thread/102857?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 15:50:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18ef2a47-4f1e-4315-8aeb-1ef486e6205a</guid><dc:creator>Sandya</dc:creator><description>&lt;p&gt;You can refer&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.3/Dropdown_Component.html"&gt;https://docs.appian.com/suite/help/22.3/Dropdown_Component.html&lt;/a&gt;&amp;nbsp;for dropdown component. For displaying data from record type use a!queryRecordType function&amp;nbsp; and then pass it choice labels and choice values based on your requirement.&lt;/p&gt;
&lt;p&gt;Please refer&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.3/Query_Recipes.html"&gt;https://docs.appian.com/suite/help/22.3/Query_Recipes.html&lt;/a&gt;&amp;nbsp;to know more&amp;nbsp;about how to query from record.&lt;/p&gt;
&lt;p&gt;sample code&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; a!dropdownField(&lt;br /&gt; label: &amp;quot;LabelName&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; placeholder: &amp;quot;--- Select a Value ---&amp;quot;,&lt;br /&gt; choiceLabels: a!queryRecordType(&lt;br /&gt; recordType: yourRecordName,&lt;br /&gt; fields: {},&lt;br /&gt; pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 100)&lt;br /&gt; ).data[access the fiield],&lt;br /&gt; choiceValues: a!queryRecordType(&lt;br /&gt; recordType: yourRecordName,&lt;br /&gt; fields: {},&lt;br /&gt; pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 100)&lt;br /&gt; ).data[field],&lt;br /&gt; saveInto: {},&lt;br /&gt; searchDisplay: &amp;quot;AUTO&amp;quot;,&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>