<?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 and text field linking</title><link>https://community.appian.com/discussions/f/user-interface/29389/dropdown-and-text-field-linking</link><description>I have a dropdown field called &amp;quot;Name&amp;quot; which has 3 values chintan, mantan and other 
 when the user selects other, a text field will be visible in which he can fill the other name. 
 the value entered in text field (other name)should get saved into name</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dropdown and text field linking</title><link>https://community.appian.com/thread/116452?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 10:07:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7f4d519-7dfb-4bec-b64a-a375126283e6</guid><dc:creator>arpitd4601</dc:creator><description>&lt;p&gt;Hi, You can use below code&amp;nbsp;&lt;br /&gt;&lt;br /&gt;a!localVariables(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!Choicevalue: {1,2,3},&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!values,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!OtherName,&lt;br /&gt; a!sectionLayout(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; contents: {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a!dropdownField(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label: &amp;quot;Name&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;placeholder: &amp;quot;select a name&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;choiceLabels: ri!DropDownValues,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;choiceValues: local!Choicevalue,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value: local!values,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;saveInto: local!values&lt;br /&gt;&amp;nbsp; ),&lt;br /&gt; a!textField(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;label: &amp;quot;Name&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value: local!OtherName,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;saveInto: local!OtherName,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;showWhen: if(tointeger(local!values)=3,true(),false())&lt;br /&gt;&amp;nbsp; &amp;nbsp; )&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;)&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here, I have made one rule input for dropdown field and use a local!values for saving the dropdown values,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;And in text field you can use showwhen when other option is selected then text field show other it can&amp;#39;t show.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown and text field linking</title><link>https://community.appian.com/thread/116437?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 06:49:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d8629a3-d23d-4864-af27-91863377cf72</guid><dc:creator>ganesh_sasank18</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!list: { &amp;quot;Ramesh&amp;quot;, &amp;quot;Somesh&amp;quot;, &amp;quot;Other&amp;quot; },
  local!selectValue,
  local!otherValue,
  {
    a!dropdownField(
      label: &amp;quot;Name&amp;quot;,
      choiceLabels: local!list,
      choiceValues: local!list,
      value: local!selectValue,
      saveInto: local!selectValue,
      placeholder: &amp;quot;Select a Value&amp;quot;
    ),
    a!textField(
      label: &amp;quot;other&amp;quot;,
      showWhen: local!selectValue = &amp;quot;Other&amp;quot;,
      value: local!otherValue,
      saveInto: {
        local!otherValue,
        if(
          contains(
            touniformstring(local!list),
            tostring(local!otherValue)
          ),
          &amp;quot;&amp;quot;,
          a!save(
            local!list,
            append(local!list, local!otherValue)
          )
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown and text field linking</title><link>https://community.appian.com/thread/116430?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 06:40:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a551f7a0-6d99-4ef6-a61b-ab74226f2674</guid><dc:creator>vikashk7323</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can put a show when condition that when dropdownValue=&amp;quot;Other&amp;quot; then a text field will show. In the text field you can map the rule input to save data where name is getting stored. Make sure to stored both the dropdownValue and text field value in different variable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>