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

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 @vjcaldeira1 :

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.

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

 

I would like that the checkbox continue true AFTER the filter

Hi @vjcaldeira1 :

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!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,833)