cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Villicus
Frequent Visitor

Multi Select Checkbox not getting unchecked

Hi, I'm new to power apps and I saw this video on how to do a multi select checkbox, (3) Multi Select Checkbox in Power Apps - YouTube.

 

However the issue I have is that when you clear the collection my checkboxes still remains ticked. This does not occur in the video. Any fixes for this? 

Villicus_0-1648441113916.png

As you can see when I click the button it should clear the collection and it does but the checkbox still remains ticked why? 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi I took your advice and started researching for the default of the checkbox to see how it affects the ticked or unticked and I solved the issue. 
The default of the checkbox I used this code:
If(ThisItem in (collectionName), true, false)

Thank you for your time.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Villicus ,

I assume that the checkboxes are in a Gallery - what is the Items of this Gallery and the Default of the checkboxes and what code do you have on the button (all in Text please)

Hi,

yes I have the checkboxes in a gallery, 

It is from the auto generated datacard when you import from sharepoint, 
In the datacard
Default: CategoryData (its a collection)

Update: CategoryData

 

Gallery inside the datacard

Default: did not put any text inside

Items: Choices([@IncidentNotiForm].Category)

 

Checkbox codes:

OnCheck: Collect(CategoryData,ThisItem)

OnUncheck: Remove(CategoryData,ThisItem)

Text: ThisItem.Value

 

Hi I took your advice and started researching for the default of the checkbox to see how it affects the ticked or unticked and I solved the issue. 
The default of the checkbox I used this code:
If(ThisItem in (collectionName), true, false)

Thank you for your time.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,082)