<?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 deselect a radio button option?</title><link>https://community.appian.com/discussions/f/user-interface/12796/how-to-deselect-a-radio-button-option</link><description>Hello, 
 We have a use case where user needs to select only one option out of multiple options. It is not a mandatory field. Radio button helps in ensuring only one option is selected. However, it doesn&amp;#39;t allow user to deselect the option. We tried to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57512?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 18:31:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8e3880a-cc58-4576-ae93-1dc9940aec39</guid><dc:creator>ericg329</dc:creator><description>While I applaud the creativity of a lot of the other solutions people have provided, radio buttons aren&amp;#39;t meant to be deselected per web standards. Before utilizing a workaround consider how this will impact end users who are use to utilizing radio buttons on many other web interfaces. Additionally, think of the potential burden on future developers that may need to maintain this behavior and figure out what was done. &lt;br /&gt;
&lt;br /&gt;
I would suggest utilizing a different field type, as you already mentioned.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57471?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 15:34:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfa72333-9590-4225-b98f-cb6ed7b7e629</guid><dc:creator>Mike Schmitt</dc:creator><description>Sorry to hear you don&amp;#39;t have 18.1&amp;#39;s features available to use yet.  I would also like to point out that the only two features I&amp;#39;ve listed that you can&amp;#39;t do in 17.3 (i believe) are the Side-By-Side Layout and Rich Text Icon.  So if you wanted to do something similar, you could probably just use an image field right below the radio button field, and the for the image you could use the a!iconIndicator component (with the &amp;quot;REMOVE&amp;quot; icon), and a link configured in the same way.  It wouldn&amp;#39;t look QUITE as nice as my original version but it might be pretty good.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57463?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 10:51:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1fb3615d-018c-4053-9b05-3030cac09ebc</guid><dc:creator>ravalik</dc:creator><description>Hi &lt;a href="/members/snehab848"&gt;snehab848&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
According to me whatever approach you have selected is quite possible and applicable.Multi check box with certain validations allow you to solve the issue.As Mike suggested you can also use the creative approach if it suits to your requirement.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57462?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 10:47:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e435b899-102f-49bd-8c89-f6970c3c450b</guid><dc:creator>snehab848</dc:creator><description>Thank you everyone for your valuable suggestions! &lt;br /&gt;
&lt;br /&gt;
We were looking for an approach which will not involve multiple components for our use case since we don&amp;#39;t want a bulky code which may impact performance. &lt;br /&gt;
&lt;br /&gt;
However, it seems it is not possible to implement the use case with single component. &lt;br /&gt;
But it was nice to learn about new components in Appian 18.x . Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57461?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 10:24:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e76836d-e86a-40da-9c58-5020fc239657</guid><dc:creator>snehab848</dc:creator><description>Thank you Thasneem for coming up with such an interesting solution. We shall keep it in mind when we move over to Appian 18.x.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57459?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 10:06:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dee217d4-9984-4d51-878b-8e1157c6985b</guid><dc:creator>snehab848</dc:creator><description>That is an interesting solution Mike! Currently we are on Appian 17.3. We&amp;#39;ll keep your approach in mind when we move over to Appian 18.x. Thanks a lot!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57391?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 09:10:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2162acc3-5776-451a-bedf-9955902a13e5</guid><dc:creator>Thasneem Nisa </dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/snehab848"&gt;snehab848&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can try following approach&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!optionChosen,
  {
    a!richTextDisplayField(
      label: &amp;quot;Choose an option&amp;quot;,
      value: {
        a!richTextIcon(
          icon: if(
            local!optionChosen = &amp;quot;Option 1&amp;quot;,
            &amp;quot;dot-circle-o&amp;quot;,
            &amp;quot;circle-o&amp;quot;
          ),
          link: a!dynamicLink(
            value: &amp;quot;Option 1&amp;quot;,
            saveInto: a!save(
              local!optionChosen,
              if(
                local!optionChosen = save!value,
                null,
                save!value
              )
            )
          ),
          color: &amp;quot;SECONDARY&amp;quot;,
          linkStyle: &amp;quot;STANDALONE&amp;quot;
        ),
        a!richTextItem(
          text: &amp;quot; Option 1&amp;quot;
        )
      }
    ),
    a!richTextDisplayField(
      value: {
        a!richTextIcon(
          icon: if(
            local!optionChosen = &amp;quot;Option 2&amp;quot;,
            &amp;quot;dot-circle-o&amp;quot;,
            &amp;quot;circle-o&amp;quot;
          ),
          link: a!dynamicLink(
            value: &amp;quot;Option 2&amp;quot;,
            saveInto: a!save(
              local!optionChosen,
              if(
                local!optionChosen = save!value,
                null,
                save!value
              )
            )
          ),
          color: &amp;quot;SECONDARY&amp;quot;,
          linkStyle: &amp;quot;STANDALONE&amp;quot;
        ),
        a!richTextItem(
          text: &amp;quot; Option 2&amp;quot;
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/2625.Radio_5F00_Button.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/2625.Radio_5F00_Button.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57353?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 16:46:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7fd5851-ad6a-4b28-9206-930b20d7aa8c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;With the advent of Rich Text Links, Rich Text Icons, and the Side-By-Side Layout options, we can probably come up with some creative solutions to this problem now. &amp;nbsp;In the past I always did what some prior commentors suggested and just put a &amp;quot;None&amp;quot; or &amp;quot;N/A&amp;quot; option. &amp;nbsp;But this got me thinking.&lt;/p&gt;
&lt;p&gt;What if we used a rich text icon with a dynamic link configured such that it shows up right next to the radio button values?&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/pastedimage1530204413722v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1530204413722v1.png" alt=" " /&gt;&lt;/a&gt;&amp;nbsp;---&amp;gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/13/pastedimage1530204450979v2.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1530204450979v2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here&amp;#39;s the code (18.1 required) I came up with for the above:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!radioValue,
  
  a!sectionLayout(
    label: &amp;quot;Radio Button&amp;quot;,
    contents: {
      a!textField(
        label: &amp;quot;Text&amp;quot;,
        value: &amp;quot;asdf&amp;quot;
      ),
      a!sideBySideLayout(
        alignVertical: &amp;quot;BOTTOM&amp;quot;,
        items: {
          a!sideBySideItem(
            width: &amp;quot;MINIMIZE&amp;quot;,
            item: a!radioButtonField(
              label: &amp;quot;Radio&amp;quot;,
              choiceLabels: {&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;},
              choiceValues: {&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;},
              value: local!radioValue,
              saveInto: local!radioValue,
              /*choiceLayout: &amp;quot;COMPACT&amp;quot;,*/
              required: false()
            )
          ),
          a!sideBySideItem(
            width: &amp;quot;10X&amp;quot;,
            item: a!richTextDisplayField(
              value: a!richtextitem(
                text: a!richtexticon(
                  caption: &amp;quot;Clear Radio Button Value&amp;quot;,
                  icon: &amp;quot;REMOVE&amp;quot;
                ),
                link: a!dynamicLink(
                  saveInto: a!save(
                    local!radioValue,
                    null()
                  )
                ),
                linkStyle: &amp;quot;STANDALONE&amp;quot;
              )
            )
          )
        }
      ),
      a!dropdownField(
        label: &amp;quot;Dropdown&amp;quot;,
        choiceLabels: {&amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;},
        choiceValues: {&amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;},
        placeholderLabel: &amp;quot;(Standard Dropdown)&amp;quot;
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57344?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 13:02:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9c9fb8a-336f-4976-b159-2d56c8124c8f</guid><dc:creator>Shubham Aware</dc:creator><description>Hi &lt;a href="/members/snehab848"&gt;snehab848&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
This also a good approach you can implement.&lt;br /&gt;
Nice &lt;a href="/members/shwetad"&gt;shwetad&lt;/a&gt;.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57341?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 12:38:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a20575a-8b13-4f3c-bea6-a92295874fee</guid><dc:creator>deviratnamv</dc:creator><description>Hi snehab,&lt;br /&gt;
What you said is absolutely correct, if we want to select radio button option it can&amp;#39;t deselect the option, instead you can use checkbox for deselecting the option..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57338?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 11:59:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09ddf719-1c95-4199-96db-1331e116f8d1</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes you can&amp;#39;t deselect the ration button option once selected, you can add a new option e,g, &amp;nbsp;&lt;strong&gt;None. &lt;/strong&gt;along with the other options&lt;/p&gt;
&lt;p&gt;and Appian don&amp;#39;t allow to disable the options in CheckBox&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57337?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 11:57:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cc3c9e7-26b7-4bd7-9db6-ae28ce25b4c4</guid><dc:creator>shwetad</dc:creator><description>Hi Sneha,&lt;br /&gt;
&lt;br /&gt;
You could use one checkbox and if that is selected then only make radio Button editable, else keep it disabled. And while selecting or deselecting checkbox set the value of radio button to null.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to deselect a radio button option?</title><link>https://community.appian.com/thread/57336?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 11:56:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08273b6e-e0fd-4ef8-a43c-72b4d27b8a62</guid><dc:creator>Shanmukha</dc:creator><description>Hi Sneha,&lt;br /&gt;
&lt;br /&gt;
You are using the better approach(multi check box with validation so that user can only select one.) as per your scenario. If you want to implement it with Radio buttons then you can add another radio button which has value of None this may also resolve your issue. &lt;br /&gt;
&lt;br /&gt;
Thanks..!!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>