In "old" version of forms how do I code a button click?

To put it simply, I want it to generate a click on a button automatically when a field has a particular value. In the properties of the button, on the logic tab, I have:

image

And so here I need the Javascript to click this button.