<?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>a!radioButton() how do I disable only one of the choiceLabels options upon conditions met?</title><link>https://community.appian.com/discussions/f/user-interface/27700/a-radiobutton-how-do-i-disable-only-one-of-the-choicelabels-options-upon-conditions-met</link><description>Hi team, I been pondering and I would like to disable only the &amp;quot;direct approve&amp;quot; option upon conditions met. Is that possible?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!radioButton() how do I disable only one of the choiceLabels options upon conditions met?</title><link>https://community.appian.com/thread/107903?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 02:52:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a91bf4a-b449-4bfb-87c2-c95f54e4ac7a</guid><dc:creator>marcusmoo</dc:creator><description>&lt;p&gt;For other users: Another good alternative is to also hide so dont have to hardcode the same saveInto values multiple times. Thanks for your answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!radioButton() how do I disable only one of the choiceLabels options upon conditions met?</title><link>https://community.appian.com/thread/107742?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 16:45:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ba9464e-2615-4a33-a39d-cfa43b4d6dcc</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Additionally, what I generally do here is to manage the selection options in a local refresh variable and continue to use a single&amp;nbsp;radio button or dropdown, such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!canApproveDirect: true,
  local!options: {&amp;quot;Approve&amp;quot;,&amp;quot;Reject&amp;quot;,&amp;quot;Direct Approve&amp;quot;,&amp;quot;Direct Reject&amp;quot;},
  local!choices: a!refreshVariable(
    value: if(
      local!canApproveDirect,
      local!options,
      index(local!options,{1,2})
    )
  ),
  local!selection,
  {
    a!radioButtonField(
      label: &amp;quot;Direct Approvals&amp;quot;,
      choiceLabels: {&amp;quot;Yes&amp;quot;,&amp;quot;No&amp;quot;},
      choiceValues: {true,false},
      value: local!canApproveDirect,
      saveInto: {
        local!canApproveDirect,
        a!save(local!selection,null)
      }
    ),
    a!radioButtonField(
      label: &amp;quot;This application is recommended for&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: local!choices,
      choiceValues: local!choices,
      value: local!selection,
      saveInto: local!selection
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!radioButton() how do I disable only one of the choiceLabels options upon conditions met?</title><link>https://community.appian.com/thread/107696?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 07:21:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4f0e6dc-d6eb-46ed-b9b5-826bf7759a59</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Not really. Either you disable all the options or keep all of them enabled.&amp;nbsp;&lt;br /&gt;A workaround is to create multiple radioButtonFields for each option and then control their disabled state individually.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>