We help IT Professionals succeed at work.
Get Started

Using Roles in Author fields

shuboarder
shuboarder asked
on
431 Views
Last Modified: 2013-12-18
Hi,

I am trying to use the following code in an Author field on a form:

@If(
site_country = "UK";  @UserName : "[UK]";
site_country = "Australia";  @UserName : "[Australia]";
site_country = "India";   @UserName : "[India]";
site_country = "China";  @UserName : "[China]";
site_country = "Malaysia";   @UserName : "[Malaysia]";
site_country = "Japan";   @UserName : "[Japan]";
site_country = "Germany";   @UserName : "[Germany]";
site_country = "South Africa";   @UserName : "[South Africa]";
"[Admin]")

Although this is seemingly valid, it doesn't seem to work as I would like.

What I am trying to achieve is to make documents only editable if the country matches the role, or if they were the original document authors.

If the site_country field doesn't match any of the listed countries I want it to be assigned role of "[Admin]"

The site_country field is a computed text field.

This is for Notes Client 6.53

Thanks.
Comment
Watch Question
IT Consultancy
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 4 Answers and 17 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE