Problem with Access to Layouts
I have setup a privilege set that only allows access to a few layouts. When I try to access them I get the filemaker "access denied" screen (as expected). What I want to do is intercept that error before it is displayed so that I can display a custom message for the user and return them to where they started. I have done a "Get (LayoutAccess)" check immediately when the script is called so as I can catch the error but the "access denied" screen is displayed even before that.
What is the best way to accomplish what I am trying to do?
Any ideas would be appreciated.