Close/Cancel button on stateless form

I’m trying to create a simple ‘close’ button on a stateless form in Zoho Creator.

In the ‘on click’ workflow I’ve put just about every permutation of the navigational URLs in the documentation (e.g. openUrl("#Script:dialog.close","same window"))

The problem is that it still wants to run the validation rules on the form, when I really just want the user to be brought back to the previous page without submitting anything.

Nothing is working for such a simple thing. Just wondering if anyone on this forum has managed to create such a button and got it to work?

Thanks in advance!