<?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>Refresh text filed when ever clicks on other radio button</title><link>https://community.appian.com/discussions/f/user-interface/14798/refresh-text-filed-when-ever-clicks-on-other-radio-button</link><description>I had a radio button where 
 scenario: click yes need to populate a text field, clicks NO it needs to hide and the text field and refresh the field . 
 In this scenario there is a button layout as save and edit options as buttons. when clicks on save</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Refresh text filed when ever clicks on other radio button</title><link>https://community.appian.com/thread/66230?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 00:15:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f5471ed-f726-4ec8-8bee-9c1065e0c153</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;I did my best to understand the question, but the phrasing isn&amp;#39;t very clear.&lt;/p&gt;
&lt;p&gt;does this help?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!radioButtonValue,
  local!textValue,
  local!showRad: true(),
a!formLayout(
  label: &amp;quot;Form&amp;quot;,
  contents: {
    a!columnsLayout(
      columns: {
        a!columnLayout(
          contents: {
            a!radioButtonField(
              label: &amp;quot;Radio Buttons&amp;quot;,
              labelPosition: &amp;quot;ADJACENT&amp;quot;,
              
              choiceLabels: {&amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot;},
              choiceValues: {&amp;quot;some value&amp;quot;, &amp;quot;clear&amp;quot;},
              saveInto: {
                local!radioButtonValue,
                a!save(
                  local!textValue, 
                  if(
                    save!value=&amp;quot;clear&amp;quot;,
                    null,
                    save!value
                  )
                ),
                a!save(
                  local!showRad,
                  if(
                    save!value=&amp;quot;clear&amp;quot;,
                    false(),
                    true()                    
                  )
                )                           
              },
              showWhen: local!showRad,
              choiceLayout: &amp;quot;COMPACT&amp;quot;,
              validations: {}
            ),
            a!textField(
              label: &amp;quot;Text&amp;quot;,
              labelPosition: &amp;quot;ADJACENT&amp;quot;,
              value: local!textValue,
              saveInto: {local!textValue},
              refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
              validations: {}
            )
          }
        )
      }
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;NO&amp;quot;,
        value: true(),
        saveInto: {
          local!showRad,
          a!save(local!radioButtonValue, null()),
          a!save(local!textValue, null())
        },
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {}
  )
))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>