<?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>Issue with Radio button Field</title><link>https://community.appian.com/discussions/f/general/30810/issue-with-radio-button-field</link><description>Hii, 
 I am unable to select NA option , for YES or NO Its working fine , how can i resolve this, 
 i have to save this value in to boolean type column</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122682?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 16:58:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f322b436-d848-40c1-a6df-aa431403286b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Your main issue here is that you also need to do some trickery in the &amp;quot;value&amp;quot; field to make it work.&amp;nbsp; Without some more advanced trickery, you will need to settle on the radio button starting off with a default selection of &amp;quot;N/A&amp;quot; when the user has not yet made any selection.&amp;nbsp; Otherwise an approach like the following should be very easy:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1701708352485v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!booleanValue: toboolean(null()),
  
  a!radioButtonField(
    label: &amp;quot;3-way boolean selector&amp;quot;,
    choiceLabels: {
      &amp;quot;Yes&amp;quot;,
      &amp;quot;No&amp;quot;,
      &amp;quot;Null Value&amp;quot;
    },
    choiceValues: {
      true(),
      false(),
      &amp;quot;null&amp;quot;
    },
    value: if(
      a!isNullOrEmpty(local!booleanValue),
      &amp;quot;null&amp;quot;,
      local!booleanValue
    ),
    saveInto: {
      a!save(
        local!booleanValue,
        if(
          save!value = &amp;quot;null&amp;quot;,
          null(),
          save!value
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122680?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 16:31:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:294ea7b3-531c-4e80-89c1-c5fd2016ceb5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;technically a boolean can handle yes, no, or null - OP is just doing this incorrectly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122671?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 12:56:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cad6552c-2f48-4a69-b1d8-b9e5544eb12d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot store three different values in a boolean. Switch to a text or number type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122669?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 12:28:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:86589c22-ead4-4795-9d47-c3b606017a79</guid><dc:creator>tushark6475</dc:creator><description>&lt;p&gt;This modification will not resolve the issue and Appian doesn&amp;#39;t accept two same values in the choiceValues parameter. I believe here need to change the datatype of the record field. Boolean only be used for 2 values. Take text for all three&amp;nbsp;options or different integers.&amp;nbsp;&lt;pre class="ui-code" data-mode="sass"&gt;a!localVariables(
  local!a,
  a!radioButtonField(
    label: &amp;quot;&amp;quot;,
    choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot;, &amp;quot;N/A&amp;quot; },
    choiceValues: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot;, &amp;quot;N/A&amp;quot; },
    
    value: local!a,
    saveInto: {
      local!a,
      a!save(
        local!a, if(local!a = &amp;quot;NA&amp;quot;, {}, local!a)
      )
    },
)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122668?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 12:28:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7450ca17-541d-4282-b841-fb5ac899f638</guid><dc:creator>Sudhir Singh</dc:creator><description>&lt;p&gt;but duplicate value is not allowed in choice value it is giving error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Radio button Field</title><link>https://community.appian.com/thread/122667?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 12:20:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b568afe9-da79-4cbe-855a-a60248a7afb8</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;&amp;quot;NA&amp;quot; (choiceValues) is not a boolean value, check setting this value to 1 (for example, only for testing purporses)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>