Hi @Anonymous ,
Thanks for your feedback, i tried your code and i still have some malfunction,
actually i have a sharepoint list with two columns, one for YES and other one for NO, means when i press the save button it patch the word YES if checkbox1 has been checked and NO if checkbox has been checked, and my gallery in powerapp should by defaults keep the already checked box, means when you open the powerapps next time then you will still be able to see the already checked box last time,
so all those functions i mentioned worked well, means save the checked value in sharepoint list and by defaults the app still keep the already checked values.
my code : defaults checkbox1: T1 ||If(Toggle1.Value=true;true) || If(ThisItem.yes="yes";true;false) || If(Toggle2.Value=true;false)
defaults checkbox2: T2 || If(Toggle2.Value=true;true) || If(ThisItem.no="no";true;false) || If(Toggle1.Value=true;false)
On Toggle 2:
OnCheck=UpdateContext({T2:true});UpdateContext({T1:false});
OnUncheck=UpdateContext({T2:false});UpdateContext({T1:true});
Default=T2
On Toggle 1:
OnCheck=UpdateContext({T2:false});UpdateContext({T1:true});
OnUncheck=UpdateContext({T2:true});UpdateContext({T1:false});
Default=T1
-so the issue is that if check the toggle1, checkbox1 will be checked, but actually one the other side checkbox2 should be automatically unchecked but now if checkbox2 has value it can not be unchecked.
-about reset button, i actually need if i press on reset button, then all checkbox1 and 2 and toggle1 and 2 will all be unchecked means all to false.
