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

Toggle Control

I have two toggle switch in a gallery.

The first one(CompletedTask) is used to filter the gallery as per criteria.

The second toggle is (TaskComplete) used to patch value back to SQL.

 

The problem I am having is when check the TaskComplete toggle, it patches true back to SQL and the record is gone from the list. When I check the CompletedTask Toggle, I see that record. However when I uncheck the CompletedTask Toggle to see the remaining task list, the top most record is automatically marked as taskcomple to true back to SQL.

 

Why is the first toggle even trying to control the second toggle and trying to patch when the list is just filtering as per the first toggle?

1 REPLY 1
Super User
Super User

Re: Toggle Control

Hi @chaitanyaChavan,

First, make sure both toggles are inside the gallery. Please post the location of the patch function in the toggle’s property, ie OnChange, OnCheck,etc. and finally the actual Patch() functions in order to troubleshoot your problem. Also, why do you have two toggles when you can have one do both functions?

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,805)