cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

problems with checkbox

HI all!
I have a gallery that have a checkbox and some filters combobox. foe exemplo, I checked the name1 but I need to check other name that I will filter in combobox. When I clear the filter the name1 are false in check box. How Can I solve this?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous :

The reason for this problem is that the result of the checkbox has not been saved.

The solution is to add a field "Check" (Boolean) in your data source.

Then,please follow these steps:

1\set the checkbox's OnCheck property to 

 

Patch(yourdatasource,ThisItem,true)

 

2\set the checkbox's OnUncheck property to 

 

Patch(yourdatasource,ThisItem,false)

 

3\set the checkbox's Default property to 

 

ThisItem.Check

 

Best Regards,

Bof

View solution in original post

4 REPLIES 4
eka24
Super User
Super User

Can you show a screenshot and also explain further.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Anonymous
Not applicable

I selected the first name
vjcaldeira1_0-1596474989639.png

Then I needed shearch other name in filter 

vjcaldeira1_1-1596475147099.png

I selected this name too

vjcaldeira1_3-1596475257677.png

 



then I cleared this filter and when I back, the check box  that I check  are false 

vjcaldeira1_2-1596475237414.png

I would like that the checkbox continue true before the filter

 

Anonymous
Not applicable

I would like that the checkbox continue true AFTER the filter

Hi @Anonymous :

The reason for this problem is that the result of the checkbox has not been saved.

The solution is to add a field "Check" (Boolean) in your data source.

Then,please follow these steps:

1\set the checkbox's OnCheck property to 

 

Patch(yourdatasource,ThisItem,true)

 

2\set the checkbox's OnUncheck property to 

 

Patch(yourdatasource,ThisItem,false)

 

3\set the checkbox's Default property to 

 

ThisItem.Check

 

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,558)