Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6750 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a script that adds new records. The layout that is used to enter the new record is different for different users (one type of physician uses one form and another type of physician uses a different form). Within the "add new record" script step, I want to determine who the user is and then send them to the appropriate form. I tried the following script step:

Go To Layout [Case (Get (AccountName); "admin"; LayoutNames ("EP INVOICE"); Get (AccountName); "cohen"; LayoutNames ("CATH INVOICE"))]

where admin and cohen are two different users and EP INVOICE and CATH INVOICE are the desired destination layouts. I get no error messages from this calculation, however, the script seems to get stuck at this step. I also tried a If/ElseIf statement which also didn't seem to work. Any thoughts would be appreciated. Thanks.

Rick (newbie)

Posted

Try this:

Case (

Get (AccountName) = "admin"; "EP INVOICE";

Get (AccountName) = "cohen"; "CATH INVOICE";

"")

I think your formatting of the case statement is the problem

Hope that helps :

This topic is 6750 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.