Hi all
I've 4 custom fields in my crm

there is a "business rule" that makes data fields mandatory when the bottom left field is set to "yes"; this work well.
With a javascript I would set the data fields at today, below screenshot of event and javascript.


When I set field value on YES, program show this error:

Can someone help me to find where I'm mistaken?
Thans in advance