Avoid close form in dialog

Hi all!

How can I avoid a form in dialog to be closed when I click the close cross in the form window header?

The question is for both, webclient and servoyclient … :D

Best regards. Roberto.

If you attach a method to the “onHide” event of the form, the form will not close if you return false in that method.
Last time I checked this was working in web client as well.

Thanks a lot!! :D ptalbot.