2 Replies Latest reply on Mar 6, 2014 8:46 AM by kenne120

    custom dialog message for tabs



      custom dialog message for tabs


           Is there a way to generate a custom message when users of a certain privilege set click on a tab in a layout? Right now, I've just limited the privilege set so that when the user clicks on a tab with sensitive information they're not granted access to, the information in the restricted fields appears as <no access>.

           While a custom message is not an absolute necessity for this database at this point, it might be nice to give more explanation to users as to why they can't access certain information. 


        • 1. Re: custom dialog message for tabs

               Assuming that you are using FileMaker 12 or newer, there's a script trigger, OnTabSwitch that is tripped when a user selects a panel in a tab control or slides a slider to a new panel. There are get functions (they aren't named exactly the same in FileMaker 12 and 13) that can detect the object name and number of the tab panel selected when the trigger was tripped so you can set up a script that displays a custom message whenever a user clicks on a specific tab panel. This script can even use go to object to return the user to the previous tab panel so that they never see the <<No access>> fields on that tab panel.

               This is also possible in older versions though the scripting becomes a lot more complex.

          • 2. Re: custom dialog message for tabs

                 Great! Thank you. And yes, I am using FileMaker Pro 12.