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.

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,559)