Dynamic Filtering using Gallery View (single select)

%3CLINGO-SUB%20id%3D%22lingo-sub-2626085%22%20slang%3D%22en-US%22%3EDynamic%20Filtering%20using%20Gallery%20View%20(single%20select)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2626085%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20SharePoint%20Online%20in%20a%20Modern%20Page%2FList%2FLibrary.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20setup%20a%20List%20and%20have%20a%20Library%20that%20will%20be%20filtered%20by%20the%20items%20in%20that%20List.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20List%20is%20set%20with%20%22Allow%20individual%20item%20checkboxes%22%20to%20false%20so%20you%20can%20only%20select%20a%20single%20item%20at%20a%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20add%20the%20List%20and%20Library%20to%20a%20SharePoint%20Page%20and%20setup%20dynamic%20filtering%20it%20works%20fine%20-%20no%20probs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20as%20soon%20as%20I%20set%20the%20List%20to%20use%20the%20Gallery%20View%20it%20all%20falls%20apart.%20It%20automatically%20sets%20it%20up%20so%20that%20multiple%20select%20is%20on%20(even%20though%20it's%20turned%20off%20on%20the%20list%20view)%20so%20when%20you%20select%20an%20item%20in%20the%20List%20you%20have%20to%20check%20the%20box%20to%20select%20it%20(and%20it%20does%20filter%20the%20Library)%2C%20but%20then%20you%20have%20to%20manually%20unselect%20it%20to%20remove%20the%20filter.%20I%20want%20it%20so%20that%20you%20can%20only%20select%20a%20single%20item.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20when%20I%20go%20into%20the%20JSON%20of%20the%20Gallery%20View%20and%20set%26nbsp%3B%3CSPAN%3E%22hideSelection%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%3C%2FSPAN%3E%3CSPAN%3Etrue%3C%2FSPAN%3E%3CSPAN%3E%2C%20it%20removes%20the%20checkboxes%2C%20but%20then%20doesn't%20allow%20you%20to%20select%20any%20items%20so%20the%20dynamic%20filtering%20doesn't%20work.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20anyone%20know%20how%20to%20setup%20a%20list%20with%20Gallery%20View%20and%20have%20it%20so%20when%20you%20select%20an%20item%20it%20removes%20the%20previous%20selection%20(i.e.%20it%20only%20allows%20you%20to%20select%20a%20single%20item%20just%20like%20a%20normal%20view%20with%26nbsp%3B%22Allow%20individual%20item%20checkboxes%22%20set%20to%20false)%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EUltimately%20I%20guess%20I'm%20trying%20to%20find%20out%20how%20to%20setup%20a%20list%20with%20Gallery%20View%20that%20has%20single%20select%20on%20the%20items.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReally%20hoping%20this%20can%20be%20done%2C%20otherwise%20we'll%20be%20forced%20to%20do%20some%20custom%20solution%20which%20goes%20against%20our%20SPO%20strategy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2626085%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Using SharePoint Online in a Modern Page/List/Library.

 

I've setup a List and have a Library that will be filtered by the items in that List.

 

The List is set with "Allow individual item checkboxes" to false so you can only select a single item at a time.

 

When I add the List and Library to a SharePoint Page and setup dynamic filtering it works fine - no probs.

 

However, as soon as I set the List to use the Gallery View it all falls apart. It automatically sets it up so that multiple select is on (even though it's turned off on the list view) so when you select an item in the List you have to check the box to select it (and it does filter the Library), but then you have to manually unselect it to remove the filter. I want it so that you can only select a single item.

 

Then when I go into the JSON of the Gallery View and set "hideSelection": true, it removes the checkboxes, but then doesn't allow you to select any items so the dynamic filtering doesn't work.

 

Does anyone know how to setup a list with Gallery View and have it so when you select an item it removes the previous selection (i.e. it only allows you to select a single item just like a normal view with "Allow individual item checkboxes" set to false)?

 

Ultimately I guess I'm trying to find out how to setup a list with Gallery View that has single select on the items.

 

Really hoping this can be done, otherwise we'll be forced to do some custom solution which goes against our SPO strategy.

0 Replies