Skip 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.

Quit Filemaker

Featured Replies

Hi,

I am run FMP 5.5 on Windows 2000.

I have a button called CLOSE, the script behind this button is to check some validation/mandatory fields, if it found some invalid data, it will prompt the user to correct it, otherwise it will CLOSE the application.

But when the user click File>Exit, it will quit the FMP without checking validation/mandatory fields. I asked FMP to execute the CLOSE script if the document is closed by checking off the Perform Script of "When Closing Menu" box from Edit>Preferences>Document.

It runs the CLOSE script, but after that it quit FMP without checking the data.

Here is some script steps in my CLOSE script

ShowMessage: "Invalid Data"

Halt Script

Like I mentioned above, it shows the message, but it quit FMP even it has HALT script right after ShowMessage.

What did I miss here?

Thank you

You didn't miss a thing. That is the way FM works. The only ways to prevent the user from exiting FM are to 1) keep the user in a scripted loop with a pause statment between loop and end loop or 2) use a plug-in such as SecureFM to lock out the close box and quit options.

-bd

What you need to do, is to use the sequence:

If ["put your data validation check here"]

LoopShow Message ["Some data are invalid.

this sort of thing works well in runtime solutions, because the close box is gone. instead, you have a quit button with a script that does something like this:

If

your_conditions_are _not_met

Show Message [You must still do this and that before you can quit!] Button 1=Cancel

Halt Script

Else

Quit application

EndIf

if you are running your solutions within FM, this may not work so well, but perhaps you can get your users to only use the buttons anyway.

  • Author

Thank you all for your help. Will try it now.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.