May 15, 201411 yr 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!
May 15, 201411 yr 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