I have a power app that pulls names from a SharePoint list, and when the toggle is switched, it changes the values of a column. It does work, but the toggle automatically switches itself off. The only way this works is by putting the following code in either the onCheck/onUncheck field with the following snippet:
Patch('D17 - Check in',LookUp('D17 - Check in', ID = ThisItem.ID),{Status:{Value:"Present"}})
I tried adding a false,true variable at the end, with the default set to false, as mentioned here (https://powerusers.microsoft.com/t5/Building-Power-Apps/Toggle-automatically-switches-itself/m-p/105459), but it changes itself back and forth and nothing seems to help. Any suggestions are greatly appreciated!

Report
All responses (
Answers (