<?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>Multicheck checkbox</title><link>https://community.appian.com/discussions/f/user-interface/35225/multicheck-checkbox</link><description>How can we select the multiple choices in a check box field. 
 the current code that i am using right now is attached here with for your reference. 
 
 if( ri!questions[&amp;#39;recordType!{9f9ccdcb-c623-460d-b62e-11edf107c89f}MCS Questions.fields.{d24285e2-2025</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Multicheck checkbox</title><link>https://community.appian.com/thread/136876?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 03:32:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80a15620-49ee-434a-8f8c-bd0842dda0c1</guid><dc:creator>om786</dc:creator><description>&lt;p&gt;thanks so much&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;issue resolved now...&lt;/p&gt;
&lt;div style="display:none;position:absolute;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multicheck checkbox</title><link>https://community.appian.com/thread/136872?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 02:30:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ab74c2e-3ac7-44a1-ba66-810163e4ffb7</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/omj2851"&gt;om786&lt;/a&gt;&amp;nbsp; I have updated your code for your reference.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!checkboxField(
  choiceLabels: { &amp;quot; &amp;quot; },
  choiceValues: { true },
  value: 
if(
fv!item[&amp;#39;recordType!{ed28cd83-aecc-434c-ac3c-48f88d5ab332}.fields.{d4e78775-ad64-4f7a-9881-ff6dac1ec243}&amp;#39;],
true,
null
),
  saveInto: 
  a!save(
    fv!item[&amp;#39;recordType!{ed28cd83-aecc-434c-ac3c-48f88d5ab332}.fields.{d4e78775-ad64-4f7a-9881-ff6dac1ec243}&amp;#39;],
    if(isnull(save!value), false, true)
    ),
  align: &amp;quot;CENTER&amp;quot;
), &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can refer this below checkbox code for your reference.&lt;br /&gt;Let me know if you still have any question&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!items: {
    a!map(id: 1, summary: &amp;quot;Item 1&amp;quot;, primary:true,qty: 1, unitPrice: 10, dept: &amp;quot;Sales&amp;quot;,   due: today() + 10),
    a!map(id: 2, summary: &amp;quot;Item 2&amp;quot;, primary:false, qty: 2, unitPrice: 20, dept: &amp;quot;Finance&amp;quot;, due: today() + 20),
    a!map(id: 3, summary: &amp;quot;Item 3&amp;quot;, primary:true, qty: 3, unitPrice: 30, dept: &amp;quot;Sales&amp;quot;,   due: today() + 30)
  },
  a!formLayout(
    contents: {
      a!gridLayout(
        headerCells: {
          a!gridLayoutHeaderCell(label: &amp;quot;Summary&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Qty&amp;quot;, align: &amp;quot;RIGHT&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Primary&amp;quot;, align: &amp;quot;RIGHT&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;U/P&amp;quot;, align: &amp;quot;RIGHT&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Amount&amp;quot;, align: &amp;quot;RIGHT&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Department&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Due&amp;quot;, align: &amp;quot;RIGHT&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Decision&amp;quot;),
          a!gridLayoutHeaderCell(label: &amp;quot;Reason&amp;quot;)
        },
        columnConfigs: {
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 5),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 2),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 3),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 3),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 3),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 3)
        },
        rows: a!forEach(
          items:local!items,
          expression:{
            a!gridRowLayout(
              id: fv!index,
              contents: {
                a!textField(
                  /* Labels are not visible in grid cells but are necessary to meet accessibility requirements */
                  label: &amp;quot;summary &amp;quot; &amp;amp; fv!index,
                  value: fv!item.summary,
                  readOnly: true
                ),
                a!integerField(
                  label: &amp;quot;qty &amp;quot; &amp;amp; fv!index,
                  value: fv!item.qty,
                  readOnly: true,
                  align: &amp;quot;RIGHT&amp;quot;
                ),
                a!checkboxField(
                  choiceLabels: {&amp;quot;&amp;quot;},
                  choiceValues: {true},
                  /* If fv!item.primary is false, set the value to null so that the checkbox is unchecked        */
                  value: if(fv!item.primary, true, null),
                   /*We want to save a false value when the checkbox  is unchecked, so we need to check whether       
                   save!value is null and update the variable if so */
                  saveInto: a!save(
                    fv!item.primary,
                    if(isnull(save!value), false, true)
                  ),
                  required: true,
                  requiredMessage: &amp;quot;You must check this box!&amp;quot;
                ),
                a!floatingPointField(
                  label: &amp;quot;unitPrice &amp;quot; &amp;amp; fv!index,
                  value: fv!item.unitPrice,
                  readOnly: true,
                  align: &amp;quot;RIGHT&amp;quot;
                ),
                a!textField(
                  label: &amp;quot;amount &amp;quot; &amp;amp; fv!index,
                  value: if(
                    or(isnull(fv!item.qty), isnull(fv!item.unitPrice)),
                    null,
                    a!currency(
                      isoCode: &amp;quot;USD&amp;quot;,
                      value: fv!item.qty * fv!item.unitPrice
                    )
                  ),
                  readOnly: true,
                  align: &amp;quot;RIGHT&amp;quot;
                ),
                a!dropdownField(
                  label: &amp;quot;dept &amp;quot; &amp;amp; fv!index,
                  choiceLabels: {&amp;quot;Finance&amp;quot;, &amp;quot;Sales&amp;quot;},
                  placeholder: &amp;quot;--Select-- &amp;quot;,
                  choiceValues: {&amp;quot;Finance&amp;quot;, &amp;quot;Sales&amp;quot;},
                  value: fv!item.dept,
                  disabled: true
                ),
                a!dateField(
                  label: &amp;quot;due &amp;quot; &amp;amp; fv!index,
                  value: fv!item.due,
                  readOnly: true,
                  align: &amp;quot;RIGHT&amp;quot;
                ),
                a!dropdownField(
                  label: &amp;quot;decision &amp;quot; &amp;amp; fv!index,
                  choiceLabels: {&amp;quot;Approve&amp;quot;, &amp;quot;Reject&amp;quot;, &amp;quot;Need More Info&amp;quot;},
                  placeholder: &amp;quot;--Select-- &amp;quot;,
                  choiceValues: {&amp;quot;Approve&amp;quot;, &amp;quot;Reject&amp;quot;, &amp;quot;Need More Info&amp;quot;},
                  value: fv!item.decision,
                  saveInto: fv!item.decision,
                  required: true
                ),
                a!textField(
                  label: &amp;quot;reason&amp;quot; &amp;amp; fv!index,
                  value: fv!item.reason,
                  saveInto: fv!item.reason,
                  required: and(
                    not(isnull(fv!item.decision)),
                    fv!item.decision &amp;lt;&amp;gt; &amp;quot;Approve&amp;quot;
                  ),
                  requiredMessage: &amp;quot;A reason is required for items that are not approved&amp;quot;
                )
              }
            )
          }
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multicheck checkbox</title><link>https://community.appian.com/thread/136837?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 11:18:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d7926e1-11aa-49d7-9e21-cdcaaf67a9de</guid><dc:creator>om786</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually i am trying to save the check box&amp;#39;s for multiple row&amp;#39;s in the given grid at the same point of time.&lt;/p&gt;
&lt;div style="display:none;position:absolute;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multicheck checkbox</title><link>https://community.appian.com/thread/136828?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 10:23:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f9791471-c5c4-4023-9d17-5e3b06b7db6a</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;I hope you are talking about multiple choice option to check in checkbox field.&lt;br /&gt;&lt;br /&gt;Replace the single empty string in choiceLabels with an array of labels for your checkbox options.&lt;br /&gt;Update choiceValues to be an array with corresponding values for each label. These values can be any data type, not just boolean.&lt;/p&gt;
&lt;p&gt;choiceLabels: { &amp;quot;Option 1&amp;quot;, &amp;quot;Option 2&amp;quot;, &amp;quot;Option 3&amp;quot; },&lt;br /&gt; choiceValues: { 1, 2, 3 },&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>