Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I need to make a script for the people in my office that will ask if they are sure they want to close filemaker 10 when they hit the X at the top right.

They keep complaining that somtimes they close it by mistake and it closes down everything without asking them.

I tried looking to see if filemaker had a built in option like this but I was not able to find one. So i figured the next best thing would be to create a script.

1. Make a new script like this:

Show Custom Dialog [ "Close FileMaker?" ]

If [ Get ( LastMessageChoice ) = 2 ]

Exit Script [ Result: False ]

End If

On the show custom dialog, I left the buttons default.

2. Go to File > File Options

3. When closing this file: Perform Script. Choose your new script.

This will only work on the LAST window open.

Let me know if this works out for you.

Lauren's FileMaker Blog

Edited by Guest

  • Author

Im setting it up now but where you have Result: False it keeps telling me it does not recognize the table. I am not sure how you want me to put that in there.

I left that empty and the pop comes up fine but the issue is that no matter what button I click everything still closes.

Edited by Guest

Try,

If [ get (lastmessagechoice) = 2 ]

Halt Script

end if

Edited by Guest

  • Author

That works perfect!

thanks to both of you lovely ladies :)

Well thats odd. Next time, try using 0. 0 should also be not true. False should not have been in quotes just for the record. FileMaker deals with it in a different way.

This works fine in FM10 but I am now trying to get it to work in FM9. Any way to do it without custom menus? Halt Script does not work.

Sending a script result of "false" to stop the window from closing only works in FMP 10.0 (and assumedly later).

In FMP 9.0 and earlier if the FileMaker application is quit there is no way to stop the window/database from being closed. The quit event trumps all.

If a particular window is closed then custom menus can be used to trap for the command and do something about it. (This works for all windows, not just the last.) There is not a similar option to control the Quit command in custom menus.

Yup, what Vaughan said, only thing that saved me in the past from this was the use of SecureFM, by totally eliminating the window buttons altogether.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.