How can you add logic to the default "X" button in a Form title bar?

Within a normal Form, I want to be able to run some logic if the user clicks the default “X” button found on the title bar. Is this possible?


Comments

  • Hi there!

    Unfortunately, it is not possible to add any logic to the default “X” button within a Form’s title bar. Here is a solution that may work for your project needs:

    1. You can disable the Form title bar by navigating to Form Setup -> Sizing -> Sub-Dialog -> Hide Title Bar. By doing this, you could force the user to interact with a standard form button to exit the form and run some additional logic after.


    The resulting Form after checking the Hide Title Bar option.

    Note: The title bar within a Form will always appear while in the Debugger.

    Hope this helps!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion