How to hide a field when a switch is toggled

Hello please i would love to hide a field when the switch is toggled

Go to Checkbox Event
Add an If condition, If Checkbox = (Type Boolean) (Ticked)
Transaction Date Hidden = (Type Boolean) (Ticked)
else if Checkbox = (Type Boolean) (Unticked)
Transaction Date Hidden = (Type Boolean) (Unticked)

Let me know if you understand, otherwise I will send a working solution.