<?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>RE: Checkbox</title><link>https://community.appian.com/discussions/f/user-interface/37711/re-checkbox</link><description>Hi Everyone, 
 
 I am trying to achieve multi selection checkbox but its not working as expected 
 Currently, If I select one checkbox it is selecting all checkbox ,But I want to select multi checkbox ,How would I achieve this, can anyone correct this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141891?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 07:23:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb96e528-445f-44f7-885a-17e448d8723a</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!save,
  a!checkboxField(
    choiceLabels: {1,2,3},
    choiceValues: {&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;,&amp;quot;c&amp;quot;},
    value: local!save,
    saveInto: local!save,
    
  )
)&lt;/pre&gt;&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/13/pastedimage1729495427207v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141681?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 12:16:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d7a5b40-7435-48ad-ba2e-25cbf6c4b831</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;You will have to configure your variable as an array value and when you save the values you need to append to the variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141679?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 10:06:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68ff66cb-16af-442c-a7b3-cbe064e8833a</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Please refer &amp;quot;Grid with selection&amp;quot; pattern in the interface designer or refer the code below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!localVariables(
    /* This variable is used to persist the checkbox on selected items by holding the identifiers of the selected rows. */
    local!selection,
    /* This variable would be used to pass the full rows of data on the selected items out of this interface, such as to a process model. */
    local!selectedEmployees,
    {
      a!columnsLayout(
        columns:{
          a!columnLayout(
            contents:{
              a!gridField(
                label: &amp;quot;Employee Directory&amp;quot;,
                /* Replace the dummy data with a query, rule, or function that returns a datasubset and uses fv!pagingInfo as the paging configuration. */
                data: todatasubset(
                  {
                    a!map(id: 11, name: &amp;quot;Elizabeth Ward&amp;quot;,  dept: &amp;quot;Engineering&amp;quot;,     role: &amp;quot;Senior Engineer&amp;quot;,       team: &amp;quot;Front-End Components&amp;quot;,     pto: 15, startDate: today()-500),
                    a!map(id: 22, name: &amp;quot;Michael Johnson&amp;quot;, dept: &amp;quot;Finance&amp;quot;,         role: &amp;quot;Payroll Manager&amp;quot;,       team: &amp;quot;Accounts Payable&amp;quot;,         pto: 2,  startDate: today()-100),
                    a!map(id: 33, name: &amp;quot;John Smith&amp;quot;,      dept: &amp;quot;Engineering&amp;quot;,     role: &amp;quot;Quality Engineer&amp;quot;,      team: &amp;quot;User Acceptance Testing&amp;quot;,  pto: 5,  startDate: today()-1000),
                    a!map(id: 44, name: &amp;quot;Diana Hellstrom&amp;quot;, dept: &amp;quot;Engineering&amp;quot;,     role: &amp;quot;UX Designer&amp;quot;,           team: &amp;quot;User Experience&amp;quot;,          pto: 49, startDate: today()-1200),
                    a!map(id: 55, name: &amp;quot;Francois Morin&amp;quot;,  dept: &amp;quot;Sales&amp;quot;,           role: &amp;quot;Account Executive&amp;quot;,     team: &amp;quot;Commercial North America&amp;quot;, pto: 15, startDate: today()-700),
                    a!map(id: 66, name: &amp;quot;Maya Kapoor&amp;quot;,     dept: &amp;quot;Sales&amp;quot;,           role: &amp;quot;Regional Director&amp;quot;,     team: &amp;quot;Front-End Components&amp;quot;,     pto: 15, startDate: today()-1400),
                    a!map(id: 77, name: &amp;quot;Anthony Wu&amp;quot;,      dept: &amp;quot;Human Resources&amp;quot;, role: &amp;quot;Benefits Coordinator&amp;quot;,  team: &amp;quot;Accounts Payable&amp;quot;,         pto: 2,  startDate: today()-300)
                  },
                  fv!pagingInfo
                ),
                columns: {
                  a!gridColumn(
                    label: &amp;quot;Name&amp;quot;,
                    sortField: &amp;quot;name&amp;quot;,
                    value: fv!row.name
                  ),
                  a!gridColumn(
                    label: &amp;quot;Department&amp;quot;,
                    sortField: &amp;quot;dept&amp;quot;,
                    value: fv!row.dept
                  ),
                  a!gridColumn(
                    label: &amp;quot;Start Date&amp;quot;,
                    sortField: &amp;quot;startDate&amp;quot;,
                    value: fv!row.startDate,
                    align: &amp;quot;END&amp;quot;
                  )
                },
                pageSize: 7,
                selectable: true,
                selectionValue: local!selection,
                selectionSaveInto: {
                  local!selection,
                  /* This save adds the full rows of data for items selected in the most recent user interaction to local!selectedEmployees. */
                  a!save(local!selectedEmployees, append(local!selectedEmployees, fv!selectedRows)),
                  /* This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */
                  a!save(local!selectedEmployees, difference(local!selectedEmployees, fv!deselectedRows))
                }
              )
            }
          )
        },
        stackWhen: {
          &amp;quot;PHONE&amp;quot;,
          &amp;quot;TABLET_PORTRAIT&amp;quot;
        }
      )
    }
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141678?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 10:00:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a27e870f-4ef6-4e97-8000-e8d09f9a871e</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;yeah It is ReadOnly grid But I need to provide one option to user to select multiple rows and on select of multiple rows need to enable multidrop down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141677?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:43:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd68f260-62eb-452e-bc61-896dbc0cd27a</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;May i know why you attached a checkbox field code in the question?&lt;/p&gt;
&lt;p&gt;Are you using&amp;nbsp;an editable grid?&lt;/p&gt;
&lt;p&gt;If it is a readonly grid, I suggest&amp;nbsp;you to use the selection parameter which comes as part of the grid. Please pass selectable as true and use the following parameters.&lt;/p&gt;
&lt;p&gt;selectable: true,&lt;br /&gt; selectionValue: local!selection,&lt;br /&gt; selectionSaveInto:&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141676?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:38:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1760d5a4-0e43-4b02-ad28-bf044b2b888d</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;According to above code ,If I select one checkbox it is selected for all the rows by default, This should not happen like this User has to select checkbox&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1728898668110v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141675?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:31:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dee03cd-5e64-40ba-8a83-6cf1ebebbbc0</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Then you can just remove the choice label and pass list of empty text in choice labels. Note that number of empty text in choice label must match number of choice values&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selectionFlag_int,
  a!checkboxField(
    label: &amp;quot;&amp;quot;,
    choiceLabels: {&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;},
    choiceValues: {1,2,3},
    value: local!selectionFlag_int,
    saveInto: local!selectionFlag_int,
    align: &amp;quot;LEFT&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141674?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:28:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a315cfd-daf3-4e9c-a083-105d5bba12f1</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;multi select checkbox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141673?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:28:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70ae7b14-b3e8-486d-b9da-c72c65f48bf2</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;Okay, I need a checkbox that user can select single or multiple checkbox at a time ,There is no checkbox label.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141672?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:27:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f68f4fd-24d1-43b4-b490-d6cbe17bd85c</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Are you looking for a single check box without any label&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141671?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:17:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b461b347-9955-405d-b1f0-b1a9f72d36dd</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Can you elaborate your requirement?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141670?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:16:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a8129f7-1754-4ad1-9a5a-3446c9c0e412</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;ChoiceLabel:&amp;quot;Yes&amp;quot;,&lt;br /&gt;ChoiceValue: 1&lt;/p&gt;
&lt;p&gt;No I do not want Any Choice Label here and there should be one Choice value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RE: Checkbox</title><link>https://community.appian.com/thread/141668?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 09:13:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45300854-8aad-4fbf-b607-3277d35f8165</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;It seems like, In the choice labels and choice values you are indexing the first value of the constant. Pass the constant without any indexing and remove the if condition logic in the value parameter and pass local!selectionFlag directly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selectionFlag_int,
  a!checkboxField(
    label: &amp;quot;&amp;quot;,
    choiceLabels: {&amp;quot;Yes&amp;quot;,&amp;quot;No&amp;quot;,&amp;quot;Maybe&amp;quot;},
    choiceValues: {1,2,3},
    value: local!selectionFlag_int,
    saveInto: local!selectionFlag_int,
    align: &amp;quot;LEFT&amp;quot;
  ),
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>