I'm having a problem where my toggle is unchecking itself automatically. I put a function in the OnCheck and OnUncheck events that is supposed to update two columns in the table, like so:
OnCheck:
Patch('PTO Request', LookUp('PTO Request', ID = ThisItem.ID), {Approved_x0020_By:User().FullName, Approved_x0020_Date:Today()})
OnUncheck:
Patch('PTO Request', LookUp('PTO Request', ID = ThisItem.ID), {Approved_x0020_By:"", Approved_x0020_Date:0001/1/1})As soon as I switch the toggle, it switches back. What's going on? How can I fix it? A screenshot with this info is attached.
Bonus question: How can I replace the date with a null value? It's being set to 1/1/1969...