Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

Hide specific field for specific Named Rights

Avatar

Level 2

Hi Everyone,

I want to hide email field or field values from specific Named Rights or Specific operator group.

The below one works based on login name.

<attribute name="email" accessibleIf="$(login)=='admin'"/>

But I need to restrict for specific group. Please let me know how to achieve this.

Thanks in advance!

Raj

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Use hasNamedRight() as the conditional, e.g.: accessibleIf="hasNamedRight('admin')=true".

Then add the right to the group you're interested in, usually you're creating a right named after the group.

Thanks,

-Jon

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Use hasNamedRight() as the conditional, e.g.: accessibleIf="hasNamedRight('admin')=true".

Then add the right to the group you're interested in, usually you're creating a right named after the group.

Thanks,

-Jon