Hi community,
I have an issue and i tried many times and still not come up with the solution,
actually i have a Gallery with two checkboxes and i have a reset button to reset all checkboxes to false,
with my code the reset button works but if you reset and check again the checkboxes, it will not work, but for the defaults values in checkbox, the reset button will work well and put all checkbox to false,
defaults value: means if you checked the box then next time if you open the powerapp the value will be retained in the checkbox.
here is my code:
reset button onselect: UpdateContext({ResetCheckbox:true});; If(ResetCheckbox=true; UpdateContext({T1:false}) || UpdateContext({T2:false}))
default for one checkbox: If(ResetCheckbox=true;false; T1||If(T2=true;false;ThisItem.YES="YES";true;false) || If(T2=true;false) || If(Toggle2.Value=true;false)|| If(Toggle1.Value=true;true) || If(T2=true;false)) || If(Toggle2.Value=true;false)
