AnsweredAssumed Answered

Script to go to layout based on field criteria

Question asked by tomperr on Jul 27, 2018
Latest reply on Jul 27, 2018 by jrenfrew

I would like to direct FM to open a layout based on the user's function.  Keeping the example simple, I have 20 users with a function field, (sales, production, service)  Each user has 1 of the said defined roles.  My script is:

If [Users::Function = "Sales"]

     Go to Layout [Red]

Else If [Users::Function = "Production"]

     Go to Layout [Blue]

Else

     Go to Layout [Green}

End If

 

Previously, the layout was directed accordingly.  In the new files under development, when a different user signs in with a different function, the program assumes the function of the 1st User record every time.

I have been successful in previous files but now not working.  What am I missing?

Outcomes