cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Show only checkboxes checked when toggled

Is there a way I can add a toggle in my browsescreen1 so that when hit it will show only the items checked in my checkbox. This is the filter I have in my gallery Filter(
collCCBMasterData,
If(
IsBlank(ComboBox1.Selected.Result) || ComboBox1.Selected.Result = "All",
true,
'Functional Area' in ComboBox1.SelectedItems
) && If(
IsBlank(Filter.Text),
true,
Filter.Text in 'Requirement Source'
) && If(
IsBlank(Search_.Text),
true,
Search_.Text in Name
)
). When the toggle is checked I only want the checkboxes that are checked to appear in the gallery.

2 REPLIES 2
Highlighted
Super User III
Super User III

Hi @powerapps890 ,

Firstly add a field to collCCBMasterData

AddColumns(
   collCCBMasterData,
   "Checked",
   false
)

In the OnCheck of the box in the gallery do this (also use false on OnUncheck)

Patch(
   colCCBMaster,
   ThisItem,
   {Checked:true}
)

On the Default of the box in the gallery

ThisItem.Checked

then your Filter

Filter(
   collCCBMasterData,
   If(
      IsBlank(ComboBox1.Selected.Result) || 
	  ComboBox1.Selected.Result = "All",
      true,
     'Functional Area' in ComboBox1.SelectedItems
   ) && 
   If(
      IsBlank(Filter.Text),
      true,
      Filter.Text in 'Requirement Source'
   ) && 
   If(
      IsBlank(Search_.Text),
      true,
      Search_.Text in Name
   ) &&
   Checked=true
) 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

Highlighted

Where does the toggle come into play? @WarrenBelz  When toggle is clicked how will it filter the checkboxes without calling it? @WarrenBelz 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,839)