<?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>How to populate other fields in Appian?</title><link>https://community.appian.com/discussions/f/new-to-appian/21926/how-to-populate-other-fields-in-appian</link><description>Hi Everyone, 
 Can anyone please tell me how can I populate other fields in interface based on value selected in one of the dropdown field? 
 Thank You</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85894?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 03:58:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f72d299-643a-4024-a606-8729b2260638</guid><dc:creator>t v s satyanarayana rao</dc:creator><description>&lt;p&gt;If possible please share the code , we can understand a bit more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85891?ContentTypeID=1</link><pubDate>Sun, 19 Sep 2021 16:33:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6985646b-f9bb-4dac-82e2-293bfb1d4ffd</guid><dc:creator>shubhamy0001</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;The drop down field is dynamic and getting values from database. Above solution has some fixed values only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85888?ContentTypeID=1</link><pubDate>Sun, 19 Sep 2021 08:31:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c401fdf9-40ef-47d5-857b-6d3fdab19164</guid><dc:creator>nitesht9652</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In case, you want to have just one field to auto-populate the result, you could attempt the below approach:&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!dbResult:{&lt;br /&gt; a!map(id:1,name:&amp;quot;Yes Value&amp;quot;),&lt;br /&gt; a!map(id:2,name:&amp;quot;No Value&amp;quot;),&lt;br /&gt; },&lt;br /&gt; local!showWhen,&lt;br /&gt; {&lt;br /&gt; a!dropdownField(&lt;br /&gt; label: &amp;quot;Drop Down&amp;quot;,&lt;br /&gt; placeholder: &amp;quot;Select a value&amp;quot;,&lt;br /&gt; choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },&lt;br /&gt; choiceValues: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },&lt;br /&gt; value: local!showWhen,&lt;br /&gt; saveInto: { local!showWhen }&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: if(&lt;br /&gt; local!showWhen = &amp;quot;Yes&amp;quot;,&lt;br /&gt; &amp;quot;Filed when value is Yes&amp;quot;,&lt;br /&gt; &amp;quot;Filed when value is No&amp;quot;&lt;br /&gt; ),&lt;br /&gt; value:if(&lt;br /&gt; local!showWhen = &amp;quot;Yes&amp;quot;,&lt;br /&gt; local!dbResult[1].name,&lt;br /&gt; local!dbResult[2].name&lt;br /&gt; ),&lt;br /&gt; showWhen: or(&lt;br /&gt; local!showWhen = &amp;quot;Yes&amp;quot;,&lt;br /&gt; local!showWhen = &amp;quot;No&amp;quot;&lt;br /&gt; ),&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85885?ContentTypeID=1</link><pubDate>Sun, 19 Sep 2021 02:41:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8538ddda-0c1c-4fc9-8725-15300f10111f</guid><dc:creator>t v s satyanarayana rao</dc:creator><description>&lt;p&gt;HI&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Call in the Query rule in a local variable and pass the local variable in the choiceLables and ChoiceValues of the dropDown and use showWhen condition in the fields that you want to populate (like i have used in the example showWhen : local!showWhen = &amp;quot;Yes&amp;quot; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85884?ContentTypeID=1</link><pubDate>Sat, 18 Sep 2021 13:54:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bbb18bc-2007-442f-a8f5-dbf0b2815df7</guid><dc:creator>shubhamy0001</dc:creator><description>&lt;p&gt;Thanks Satyanarayan,&lt;/p&gt;
&lt;p&gt;But I am retreiving the fields from the database using expression rule, and want to populate these fields based on one of the value selected in dropdown filed from the database. Please reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to populate other fields in Appian?</title><link>https://community.appian.com/thread/85883?ContentTypeID=1</link><pubDate>Sat, 18 Sep 2021 13:26:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d3faefe-c7c1-4a64-b26e-0e981994944d</guid><dc:creator>t v s satyanarayana rao</dc:creator><description>&lt;p&gt;HI ,&lt;/p&gt;
&lt;p&gt;Displaying other components in the interface based on the dropdown values depends on the scenario and you can use &amp;quot;showWhen&amp;quot; to control the display of components.&lt;/p&gt;
&lt;p&gt;For you reference i have attached a sample code , where based on the selected values you can see the text fields&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!showWhen,&lt;br /&gt; {&lt;br /&gt; a!dropdownField(&lt;br /&gt; label: &amp;quot;Drop Down&amp;quot;,&lt;br /&gt; placeholder: &amp;quot;Select a value&amp;quot;,&lt;br /&gt; choiceLabels: {&amp;quot;Yes&amp;quot;,&amp;quot;No&amp;quot;},&lt;br /&gt; choiceValues: {&amp;quot;Yes&amp;quot;,&amp;quot;No&amp;quot;},&lt;br /&gt; value: local!showWhen,&lt;br /&gt; saveInto: {&lt;br /&gt; local!showWhen&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Filed when value is Yes&amp;quot;,&lt;br /&gt; showWhen: local!showWhen = &amp;quot;Yes&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Filed when value is No&amp;quot;,&lt;br /&gt; showWhen: local!showWhen = &amp;quot;No&amp;quot;&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;Hope this can be helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>