<?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>Disable button.</title><link>https://community.appian.com/discussions/f/user-interface/25514/disable-button</link><description>I have 3 buttons and two buttons must to be disabled if I select one of the 3 butttons. 
 
 I tried with the follow code on disabled property: 
 
 a!buttonArrayLayout( buttons: { a!buttonWidget( icon: &amp;quot;check&amp;quot;, size: &amp;quot;LARGE&amp;quot;, value: local!buttonVal = 2</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99533?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 06:11:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c595243-e16c-4909-8553-1e5dd0bdefcc</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You can also use a!map instead of so many local variables. That would also give you control on which index of map you want to work on if you are building this grid dynamically.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99530?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 03:14:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e649e4f-b0cd-4a36-bf1a-26baa94fceb5</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;Yes, Based on the requirement we can change the disable condition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99528?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 20:10:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8f9e4a2-1243-4e59-884d-27d874a8a1d4</guid><dc:creator>AldairV</dc:creator><description>&lt;p&gt;I made a few changes on the code, I created 7 local variables because I have 24 buttons and every row is different&lt;/p&gt;
&lt;p&gt;Thank you a lot,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99527?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 18:53:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bde80db6-f065-4d68-9313-f8552f34994f</guid><dc:creator>AldairV</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!buttonVal:0,
  local!btnSelected: true,
  {
    a!boxLayout(
      label: &amp;quot;Tu Escudo&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!cardLayout(
                      contents: {
                        a!richTextDisplayField(
                          labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                          value: {
                            a!richTextHeader(
                              text: {
                                &amp;quot;Enfermedades Frecuentes&amp;quot;
                              }
                            )
                          },
                          align: &amp;quot;CENTER&amp;quot;
                        )
                      },
                      height: &amp;quot;AUTO&amp;quot;,
                      style: &amp;quot;NONE&amp;quot;,
                      marginBelow: &amp;quot;STANDARD&amp;quot;,
                      showBorder: false
                    )
                  },
                  height: &amp;quot;AUTO&amp;quot;,
                  style: &amp;quot;NONE&amp;quot;,
                  marginBelow: &amp;quot;STANDARD&amp;quot;,
                  showBorder: false
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!sectionLayout(),
                a!dropdownField(
                  label: &amp;quot;Plan Dental&amp;quot;,
                  labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                  placeholder: &amp;quot;$10,000.00&amp;quot;,
                  choiceLabels: {&amp;quot;Option 1&amp;quot;, &amp;quot;Option 2&amp;quot;, &amp;quot;Option 3&amp;quot;, &amp;quot;Option 4&amp;quot;,
                  &amp;quot;Option 5&amp;quot;, &amp;quot;Option 6&amp;quot;, &amp;quot;Option 7&amp;quot;, &amp;quot;Option 8&amp;quot;,
                  &amp;quot;Option 9&amp;quot;, &amp;quot;Option 10&amp;quot;, &amp;quot;Option 11&amp;quot;, &amp;quot;Option 12&amp;quot;},
                  choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                  saveInto: {},
                  searchDisplay: &amp;quot;AUTO&amp;quot;,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!columnsLayout(
                      columns: {
                        a!columnLayout(
                          contents: {
                            a!buttonArrayLayout(
                              buttons: {
                                a!buttonWidget(
                                  icon: &amp;quot;check&amp;quot;,
                                  size: &amp;quot;LARGE&amp;quot;,
                                  style: &amp;quot;DESTRUCTIVE&amp;quot;,
                                  saveInto: { a!save(local!btnSelected, 1) },
                                  disabled: contains({ 2, 3 }, tointeger(local!btnSelected))
                                )
                              },
                              align: &amp;quot;CENTER&amp;quot;
                            )&lt;/pre&gt;&lt;br /&gt;I have the follow code using  solution-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99526?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 18:49:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:542a822d-46bc-486f-8cae-164cf0b05f07</guid><dc:creator>AldairV</dc:creator><description>&lt;p&gt;It works, but just disabled the button number one and it doesn&amp;#39;t let me choose another one.&lt;/p&gt;
&lt;p&gt;The 3 buttons must be enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99498?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 05:35:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e071ea6-6aa3-4fc2-b2cc-10925d360c84</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!btnSelected,
  {
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          icon: &amp;quot;check&amp;quot;,
          size: &amp;quot;LARGE&amp;quot;,
          style: &amp;quot;DESTRUCTIVE&amp;quot;,
          saveInto: { a!save(local!btnSelected, 1) },
          disabled: contains({ 2, 3 }, tointeger(local!btnSelected))
        ),
        a!buttonWidget(
          icon: &amp;quot;check&amp;quot;,
          size: &amp;quot;LARGE&amp;quot;,
          style: &amp;quot;DESTRUCTIVE&amp;quot;,
          saveInto: { a!save(local!btnSelected, 2) },
          disabled: contains({ 1, 3 }, tointeger(local!btnSelected))
        ),
        a!buttonWidget(
          icon: &amp;quot;check&amp;quot;,
          size: &amp;quot;LARGE&amp;quot;,
          style: &amp;quot;DESTRUCTIVE&amp;quot;,
          saveInto: { a!save(local!btnSelected, 3) },
          disabled: contains({ 2, 1 }, tointeger(local!btnSelected))
        )
      },
      align: &amp;quot;CENTER&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please try this code. I save the value for each button as 1,2 and 3 and according to these values i set the disability logic for the buttons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99495?ContentTypeID=1</link><pubDate>Sun, 14 Aug 2022 08:40:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:106ba4dd-3abc-474a-994c-f1f4057f7b12</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The way you use the logic for the disabled parameter seems to be OK. Where and how do you modify the two locals? This should be part of the saveInto of the dropdown.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable button.</title><link>https://community.appian.com/thread/99491?ContentTypeID=1</link><pubDate>Sat, 13 Aug 2022 05:48:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3370d486-17ca-4ef3-897e-a64c27f654f6</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi, you would need to save values on click of each button, you can use local variables to save your values. And the use this local variables to configure disable parameter of each button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>