Add Date automatically when Signature Field is signed



I was looking for a way to use Java Script in my Adobe Designer form. I want it to complete the Date field automatically with the current date when the signature field is signed. I was thinking something like, when if SignatureBox = True, then DateField...

Am I even close? I'm a bit rusty on my Java Script.

Any suggestions?

Thank you,