July 21, 200817 yr 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 July 21, 200817 yr by Guest
July 21, 200817 yr 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.
July 21, 200817 yr Author 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
July 21, 200817 yr That cross in the upper right triggers the same effects as selecting Close from the menu. You can't prevent someone from Quitting Filemaker though.
July 21, 200817 yr Author 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) ...
July 21, 200817 yr 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 July 21, 200817 yr by Guest
July 21, 200817 yr Author 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...
Create an account or sign in to comment