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.

Halting a script when "Close" button is used by user.

Featured Replies

I have a message box in one of my scripts that I do not want the user to have the ability to close by clicking on the little "X" in the upper right corner. Is this possible? Can this feature be overridden and how?

If not. How do I get my script to 'halt' if this button is used by the user?

Thanks.

I would expect that the user closing the box in this way would send an error code (I don't have FMP6 so I can't test it) so perhaps some error capture within the script would enable you to halt the script.

Look for "Allow User Abort" and Pause/Resume Script in Help. This will not hide the "X" close button but will disable it.

Also be aware the user can click the "X" button on the main FM program and it will close out everything despite the fact that Allow User Abort is off. If you want to venture into the not so wonderful world of plug-ins you might look for Secure FM which I think deals with these issues.

Edited by Guest

  • Author

The 'error capture' was the clue. I started the script with:

Set Error Capture (On)

Show Message (...)

If ("Status(CurrentError) <> 0

Go to Layout[orginal layout]

Then I go into the meat of the message and finish with my end ifs.

If the user clicks on the 'X' the window closes and returns them to where they started.

Thanks for the info.

  • Author

Spoke too soon.

From what I can tell the "X" button takes on the role of the Default button (1) and cannot be over ruled. If clicked on it does exactly what the default button is set to do not matter what the Allow User Abort or Pause/Resume functions are set to.

Edited by Guest

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.