Issue in button click

ws.URLOpen(“javascript:document.forms[0].Text.click()”)

I have the above code in post open of a form. Sometimes it works fine and sometimes it doesn’t. I mean the click is not happening.

In click of the button have few @eval(Some formulas)

No error and nothing happens, works fine in 7.0.2

Any thoughts.