Expand my Community achievements bar.

Field Validation by role, team or group

Avatar

Level 3

Has anyone attempted to validate a field so it can be only edited by specific role, team or group and how if its possible?

 

Ive almost got there with below:

 

IF($$USER.{roleID} != "56f447e300026629665421f76025385c""This field can only be edited by users with the Ops: Sourcing and Vendor Management role.", "")

 

But during testing it completely locked me out even if I changed roles or primary role.

2 Replies

Avatar

Level 1


IF($$USER.roleID!="56f447e300026629665421f76025385c",
"This field can only be edited by users with the Ops: Sourcing and Vendor Management role.",
""
)

Avatar

Level 3

I think this will work, {roleID} must be in {} for the statement to work

This seem only to work with user primary role

 

IF($$USER.{roleID} != "56f447e300026629665421f76025385c",
   "This field can only be edited by users with the Ops: Sourcing and Vendor Management role.",
   ""
)