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?
Solved! Go to Solution.
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,
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,
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |