1 Reply Latest reply on Aug 27, 2014 1:10 PM by TSGal

    Assigning A Layout Based on Login Name/Permisson

    JasonHillier

      Summary

      Assigning A Layout Based on Login Name/Permisson

      Product

      FileMaker Pro

      Version

      13

      Operating system version

      Windows

      Description of the issue

      Is it possible to assign a layout based on account or privilege set?  I have 2 layouts.  One layout is basic and allows a guest to enter an order.  The other layout is for administration which will see all the orders from everyone. What I would like to do is:
      On my Trigger "On first window open" script
      If the guest user logs in, open the layout Invoice Details Web.
      If the admin user logs in, open the layout Invoice Details IT Staff. 
      Here is picture of my script.  Is it possible and any idea how to accomplish this task.

      script.jpg

        • 1. Re: Assigning A Layout Based on Login Name/Permisson
          TSGal

               Jason Hillier:

               Thank you for your post.

               Get ( AccountName )

               This functions returns the name of the authenticated account being used by the current user of the database file.  If a user is using the FileMaker Pro guest account, then [Guest] will be returned.  A sample script may be:

               If [ Get ( AccountName ) = "[Guest]" ]
                  Go to Layout [ "Invoice Details Web" ]
               Else
                  Go to Layout [ "Invoice Detail IT Staff" ]
               End If

               -----

               Let me know if you need additional clarification.

               TSGal
               FileMaker, Inc.