FileMaker Pro 13 Tip-n-Trick: FileMaker Pro 13 Popover Close in One Script - Simplified!

Discussion created by eX-Christo on Jun 13, 2014

Simple FileMaker Pro 13 Popover Close in One Script

By: David Thorp

Yes, this is a common nuisance. Although it depends on what you want to use it for.


The intended use for popovers is what is commonly seen on iOS (and more and more websites are picking it up as time goes by) – for example the iCloud tabs and bookmarks popovers in iOS Safari. Eg. for bookmarks: You tap the bookmarks icon, it pops down a popover with the list of bookmarks in it, you choose one, and it goes away. Or if you change your mind and don’t want to choose one then you tap anywhere outside of it, and that makes it go away without selecting anything. And that’s the key there. They are designed to dismiss if you click outside of them.


But we (the FileMaker Pro Dev community), as we usually do with new FileMaker Pro features, have come up with all sorts of other uses for them. I was considering a blog post on some of these unconventional uses, but it’s kinda been done to death already by others. For starters, see here: http://filemakerhacks.com/2013/12/14/filemaker-13-popovers/. In a couple of these examples, stopping it from dismissing via any means other than clicking a specific button, is desired.


What inspired me (other than my need for it in a current client project) was the end of that article where the author (Howard Schlossberg) noted a solution to that problem, but also noted he couldn’t figure out how to do it in one script, instead needing two. Obviously that was a challenge to be met, and so I met it ;)


There’s a number of methods to stop FileMaker pro 13 popovers from closing when clicking outside, while allowing them to close when clicking a button within. Most involve two scripts. Here’s a simple way to do it all in one script. And it’s completely generic – can be applied to any popovers in a solution without adjustment!

To download the demo and see the script - visit the eX-Cetera blog by Excelisys!