cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WatermelonCat
Helper I
Helper I

A weird bug for my tracker

The way my tracker works is that if your turn on the toggle the background changes indicating that the user earned that item. The problem is every time I search for an item and turn it on, once I delete the words in the textbox, the tracker shows me other items with the toggle off but the background changed. Is there a way to prevent this?

14 REPLIES 14

Table1_7 is a new table I made with the ToggleValue column. I have a video of my problem. 

https://drive.google.com/open?id=1p4dz2C07rj8oCeB1Tx6cbNRf3NYLESwU

Hi @WatermelonCat ,

Please consider take a try with the following workaround:

1. Remove the formulas within the OnCheck property and OnUncheck property of the Toggle control.

2. Then set the OnChange property of the Toggle control within the Gallery to following:

If(
   Toggle1.Value = true,
   Patch(Table1_6, ThisItem, {ToggleValue: "Yes"}),
   Patch(Table1_6, ThisItem, {ToggleValue: "No"})
)

3. set the Default property of the Toggle control to following:

If(ThisItem.Toggle = "Yes", true, false)

4. Set the TemplateFill property of the Gallery to following:

If(
   ThisItem.ToggleValue = "Yes",
   LightBlue,
   RGBA(0,0,0,0)
)

Please consider take a try with above formula, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It works but once I turn the toggle on it changes back to off. https://drive.google.com/open?id=1a1uNrHDeJepqNwGaa-fttQBA5_UdRiqG

@WatermelonCat change the Default property of the Toggle to If( ThisItem.ColorFill = 1, true, false). This assumes that you've created 2 collections as per my previous post?

 

I've got it working using this approach ie colour changes and toggle, well, toggles between On/Off and stays on selected value.

Hi @WatermelonCat ,

I have made a test on my side, and don't have the issue that you mentioned. Please check if the ToggleValue column has been populated with proper values when you check the Toggle control in your app.

 

If the issue still exists, please consider re-create a new app based on your data source, then try above solution again, check if the issue is fixed.

 

Please make sure you do not add any other formulas within the OnCheck proeprty and OnUncheck property of the Toggle control.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,381)