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.

Is there an elegant way to keep a popover from closing?

Featured Replies

I am looking for a way to avoid the user to close a popup without clicking a button in the popover (thereby running a script) so I can use the popover for data entry. My searching capabilities seem a bit lacking today, as I couldn't find any previous discussions on this topic.

 

I've come up with a solution, but I thought I'd check here and see if anyone had any input or a better way to do this.

 

My solution:

 

I created a script "Abort Click-out"

 

The script is simply:

If [ Get ( ScriptParameter ) = ""]
   Exit Script [Result: False]
End If

Then, in the popover, I do a script trigger of:

OnObjectExit: Abort Click-out; Parameter: Get(ScriptName)

In this way, if a script is running, then Filemaker passes the script name to the Abort Click-out script and allows the script to exit normally, closing the popover. However, if the user just tries to click out of the popover, no script parameter is sent, so the script exits with a result of false so the popover doesn't close.

 

Are there situations I'm not thinking of that will cause problems or break something when handling it this way? Any suggestions for a better way to do this?

 

Any advice would be appreciated.

 

Thanks!

 

 

You've got exactly the right idea. I do it the same way, except that I use a global variable flag instead of a script parameter.

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.