Select All Options from the User Filters Record

Certified Associate Developer

Hi!

I was wondering if it’s possible to add a “Select All” option to User Filters in a Record Type. I tried but couldn’t find a way. The business needs to be able to select all options and then deselect a few, rather than having to select each one individually, which is time-consuming when there are many options. I know it’s possible to do this in a custom interface, but I’m curious if it can be done from the record side.

Thanks!

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    Hi  ,

    Appian’s native User Filters on Record Types do not currently support a “Select All” option out-of-the-box.

    There’s no built-in checkbox or UI for “Select All” in user filters configured directly in the Record Type.

    Workarounds:
    1. Custom Interface + Query Record Type
    If you need “Select All” with the ability to deselect a few:

    Build a custom interface using:

    a!multiDropdownField() with a "Select All" checkbox.

    This gives full control over filtering logic.

  • 0
    Certified Associate Developer
    in reply to Harshmodi

    Thank you for the info!  

  • Here is the code with select all value in multiple dropdown : 

    a!localVariables(
      local!selectAll: if(
        rule!CASCO_utils_checkIsNull(ri!choicesLabels),
        {},
        { "Select All" }
      ),
      local!seletcAllVAlue: {
        rule!CCA_confg_getBasicValues(key: "selectAllValue")
      },
      local!choicesLabels: append(local!selectAll, ri!choicesLabels),
      local!choicesValues: append(local!seletcAllVAlue, ri!choicesValues),
      local!saved,
      {
        a!multipleDropdownField(
          placeholder: a!defaultValue(ri!placeHolder, "Select values"),
          choiceLabels: reject(
            rule!CASCO_utils_checkIsNull(_),
            local!choicesLabels
          ),
          choiceValues: reject(
            rule!CASCO_utils_checkIsNull(_),
            local!choicesValues
          ),
          label: a!defaultValue(
            value: ri!FieldLabel,
            default: "Multiple Dropdown"
          ),
          labelPosition: "ABOVE",
          value: ri!savedValue,
          saveInto: {
            local!saved,
            if(
              /*"Does our local contains select all value"*/
              contains(
                touniformstring(local!saved),
                local!seletcAllVAlue
              ),
              /*yes*/
              {
                if(
                  contains(
                    touniformstring(ri!savedValue),
                    local!seletcAllVAlue
                  ),
                  {
                    if(
                      and(
                        length(local!saved) = 1,
                        local!saved = local!seletcAllVAlue
                      ),
                      { a!save(ri!savedValue, null) },
                      ri!savedValue
                    )
                  },
                  a!save(
                    ri!savedValue,
                    union(
                      split(tostring(local!choicesValues), "; "),
                      split(tostring(local!choicesValues), "; ")
                    )
                  )
                )
              },
              /*no*/
              {
                if(
                  contains(
                    touniformstring(ri!savedValue),
                    local!seletcAllVAlue
                  ),
                  a!save(ri!savedValue, null),
                  ri!savedValue
                )
              }
            ),
            ri!saveList
          },
          searchDisplay: "AUTO",
          required: or(ri!required),
          validations: { ri!validation }
        )
      }
    )

  • 0
    Certified Lead Developer

    I a recent version, Appian added the option to define multiple default options. That might be what you are looking for.

  • Hi!

    Yes, it's possible to select multiple options in user filters from the Record Type without needing a custom interface. You can also deselect any options as needed. However, there’s no built-in "Select All" checkbox available on the record side—you'll need to manually select the options.

    I’ve attached screenshots showing:-

    • How to configure user filters in the Record Type


    • The output where multiple selections/deselections are visible in the interface

    Hope this helps!

  • Hi!

    Yes, it's possible to select multiple options in user filters from the Record Type without needing a custom interface. You can also deselect any options as needed. However, there’s no built-in "Select All" checkbox available on the record side—you'll need to manually select the options.

    I’ve attached screenshots showing:

    • How to configure user filters in the Record Type


    • The output where multiple selections/deselections are visible in the interface

    Hope this helps!