<?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>Values are not properly assigning in variables</title><link>https://community.appian.com/discussions/f/user-interface/18310/values-are-not-properly-assigning-in-variables</link><description>I think, I might have addressed this one in my previous queries. 
 I have a dropdown with name &amp;quot;Request Type&amp;quot; having two choices &amp;quot;Supply&amp;quot; and &amp;quot;Service&amp;quot;, and there is one &amp;quot;Item&amp;quot; textfield in which Item Name needs to be entered. When user selects a &amp;quot;Service</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Values are not properly assigning in variables</title><link>https://community.appian.com/thread/72055?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 13:50:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4604cd7-141c-4511-a918-2c9b52b27167</guid><dc:creator>varunkumarb0001</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt;, that worked...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Values are not properly assigning in variables</title><link>https://community.appian.com/thread/72054?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 13:33:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3adca1b8-b62b-45f6-b1f6-1b7c42653928</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;d suggest adding an extra save to your dropdown field that clears out the value of the other property whenever you change the dropdown. You should be able to do something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dropdownField(
  label: &amp;quot;request type &amp;quot; &amp;amp; fv!index,
  placeholderLabel: &amp;quot;---Please select value---&amp;quot;,
  choiceLabels: cons!OSR_TEXT_ARRAY_REQUEST_TYPE,
  choiceValues: cons!OSR_TEXT_ARRAY_REQUEST_TYPE,
  value: index(fv!item, &amp;quot;RequestTypeName&amp;quot;, {}),
  saveInto: {
    fv!item.RequestTypeName,
    if(
      fv!item.RequestTypeName = &amp;quot;Service&amp;quot;,
      a!save(target: fv!item.SupplyTypeName, value: null),
      a!save(target: fv!item.ServiceTypeName, value: null)
    )
  },
  required: true
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>