<?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 clear field value after the field is disabled</title><link>https://community.appian.com/discussions/f/user-interface/34577/how-to-clear-field-value-after-the-field-is-disabled</link><description>I have two fields like this, only when &amp;quot;Yes&amp;quot; is selected for &amp;quot;Limited&amp;quot; field can user input value for &amp;quot;Limit&amp;quot; field. But I found when &amp;quot;Limit&amp;quot; is disabled, the value is still there. 
 How can I clear value after &amp;quot;Limit&amp;quot; is disabled?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to clear field value after the field is disabled</title><link>https://community.appian.com/thread/132636?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 06:56:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5de7667-f68d-4a61-b776-bfc36706e210</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The important concept in Appian SAIL is, that we do not modify a UI component, but only the underlying data we feed into that component. So to remove a value displayed in one field, just delete that value in a saveInto in another field using a!safe().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clear field value after the field is disabled</title><link>https://community.appian.com/thread/132634?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 06:04:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48e21f10-b6fc-4508-8d22-7119ba403318</guid><dc:creator>fxzrqjzztrmy</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clear field value after the field is disabled</title><link>https://community.appian.com/thread/132632?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 05:05:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c37a1ba7-f42d-415d-9e0d-c17494c4c2f8</guid><dc:creator>ShyamSudi</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/jiayingc4832"&gt;fxzrqjzztrmy&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please have a look into this sample code. I hope this will helpful.&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!limited,
  local!limit,
  {
    a!cardLayout(
      contents: {
        a!radioButtonField(
          choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
          choiceValues: { 1, 2 },
          label: &amp;quot;Limited ?&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!limited,
          saveInto: {
            local!limited,
            a!save(local!limit,null)
           
          },
          choiceLayout: &amp;quot;STACKED&amp;quot;,
          validations: {}
        ),
        a!integerField(
          label: &amp;quot;Limit&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!limit,
          saveInto: { local!limit },
          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
          validations: {},
          disabled: or(a!isNullOrEmpty(local!limited),local!limited=2)
          
          
        )
      },
      height: &amp;quot;AUTO&amp;quot;,
      style: &amp;quot;TRANSPARENT&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clear field value after the field is disabled</title><link>https://community.appian.com/thread/132631?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 04:12:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b5fd6b6-1abb-4bce-876c-b0a69dc20996</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!field1,
  local!field2,
  {
    a!cardLayout(
      contents: {
        a!radioButtonField(
          choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
          choiceValues: { 1, 2 },
          label: &amp;quot;Radio Buttons&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!field1,
          saveInto: {
            local!field1,
            if(
              and(
                local!field1 = 2,
                a!isNotNullOrEmpty(local!field1)
              ),
              a!save(local!field2, null),
              &amp;quot;&amp;quot;
            )
          },
          choiceLayout: &amp;quot;STACKED&amp;quot;,
          validations: {}
        ),
        a!integerField(
          label: &amp;quot;Integer&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          value: local!field2,
          saveInto: { local!field2 },
          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
          validations: {},
          disabled:if(a!isNotNullOrEmpty(local!field1),
          local!field1=2,null)
        )
      },
      height: &amp;quot;AUTO&amp;quot;,
      style: &amp;quot;TRANSPARENT&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Write save on field 1 that makes field2 value null. Have a look into the sample code .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>