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.

Close Popover Unusual Behavior

Featured Replies

I have found an unusual situation using the Close Popover script step.

I have slide panels on a layout, and want to use a popover button to switch between them.  If I use a script that just uses a Go to Object step, the panels switch, but the popover remains on screen.  Fine, I said, I'll just add a Close Popover step. When I do, the popover erases, but the window jumps back to the original slide panel.

Have i, as I often do, overlooked something obvious? Can someone help with a workaround? Please see attached sample.

panelswitch.fmp12

Hi Doug!

I wonder if you have a layout trigger running or something else interfering.  What FM version and platform/version are you running?  Because I removed the pause and close popover from both scripts and they both still run perfectly, from what I can tell.  Please see attached.  Am I missing something?

popover.mp4

BTW, I'm using FMPA15.0.1.119 on OS 10.11.6

  • Author

No file triggers, no layout triggers.

Removing the pause, for me, made it look like nothing is happening (stays on the same panel), but re-inserting it shows the window going to the destination  slide panel for the duration of the pause, then jumping back. This is using the script with the Close Popover step active.

With the removal of the Close Popover step the attached screenshots show what is happening for me. Note that the position of the switch is different on Panel 3, but the popover hasn't moved. (It does go away if I click anywhere on the layout, as expected [but adding a go to object [ ] to the script does nothing].)

FMA 14.0.6 on OS X 10.11.6

BTW, what did you use to generate the video?

snap1.jpg

snap2.jpg

I use a program called Snagit.

26 minutes ago, doughemi said:

FMA 14.0.6 on OS X 10.11.6

Ah ha!  When I run my fixed file in version 14 (where I've removed the pause and close popover), the popovers break as you've indicated.  It appears to be fixed in 15.  I cannot figure out any way to fix it for you in version 14 and I've tried many combinations, just as you have.  Sorry, Doug.

It breaks when I test on exact same configuration you use.

WAIT!!  Of course we must close the popover BEFORE issuing the 'go to object'.  It appears to work for me even in 14!

26 minutes ago, doughemi said:

Removing the pause, for me, made it look like nothing is happening (stays on the same panel), but re-inserting it shows the window going to the destination  slide panel for the duration of the pause, then jumping back.

This was the clue ... why would it jump back?  It jumps back because it had to finish closing the popover which existed on the prior panel.

I will add that the step Close Popover isn't needed at all in version 15.  It is fixed that, when changing panels, the popover closes.

Edited by LaRetta

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.