Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6025 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I want a confirmation dialog before the file closes..

Under File->File options I can Filemaker to run a script before the file is closed.

I put a confirmation dialog there.. but I can't find a way to do an "abort exit" in case the user hits cancel.

What should I do so it cancels the exit?

Edited by Guest
Posted

But your profile doesn't say that.

You can create custom menus in 9 Advanced. Change the Close command in the File menu to run a script that has your confirmation dialog and checks, using If[] and Get(LastMessageChoice), what the users response is and responds accordingly.

Posted

You are totally right, I will change that.. thanks.

The problem is that the user closes the app by clicking the cross in the upper right corner..

:P

Posted

So you say it is absolutely impossible to add a confirmation dialog with the upper-rigth cross? (the one of filemaker, not of the document)

...

Posted (edited)

Yes, as it should be. If I were a user who was unable to quit an application, I would become very frustrated. Besides, I could force quit the app or turn the machine off.

What are you trying to accomplish by preventing the user from quitting?

*Actually, it's not impossible, you could for instance, put in an infinite loop of Pausing script steps that only escapes with the right Dialog choice. And I'm sure someone may have a more elegant answer, but to what problem?

Edited by Guest
Posted

I just wnat to put an "are you sure you want to quit" dialog. The user asked for it, because he has closed the application by mistake several times...

This topic is 6025 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.