Forum Discussion

SamCarlson's avatar
SamCarlson
Frequent Visitor
6 years ago
Solved

JSON Label for Slicer Selection Control Setting 'Multi-select with CTRL"

Short version: What is the JSON label for the Slicer Selection Control Setting "Multi-select with CTRL"?

 

I found this code which has almost everything I need but since multi-select with ctrl is a newer feature, it is not there.

 

Any leads on how to define this default in a JSON template would be greatly appreciated!

 

  • "slicer": {
         "*": {
              "selection": [{
                     "singleSelect": false,
                     "multiSelect": false,
                     "selectAllCheckboxEnabled": true
               }]

          }

    )

10 Replies

  • TroyV's avatar
    TroyV
    Frequent Visitor

    "slicer": {
         "*": {
              "selection": [{
                     "singleSelect": false,
                     "multiSelect": false,
                     "selectAllCheckboxEnabled": true
               }]

          }

    )

    • SamCarlson's avatar
      SamCarlson
      Frequent Visitor

      Success! Appreciate the help. Should've known "with CTRL" wouldn't be included in the JSON name. 

      • annaB's avatar
        annaB
        Frequent Visitor

        "multiselect": true did not work for me.  Through some experimenting, I figured out that the below code is instead the correct solution. 

        "strictSingleSelect": false

        This also applies to the new Button slicer (a.k.a. the advancedSlicerVisual in JSON). 

        "selection": [{
        	"singleSelect": true, 
        	"strictSingleSelect": false,
        	"selectAllCheckboxEnabled": false
        	}]
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi TroyV ,

       

      I tried to use the multiSelect but I did not change the toggle for Multi-Select with with Ctrl on.

       

      Did anyone else have this problem?

      • TroyV's avatar
        TroyV
        Frequent Visitor

        Interesting Anonymous as long as you have it set to true I would think it would work? Maybe make sure that the Single Select option is set to false.