Custom Form field Validation that prevents access except from specific group | Community
Skip to main content
FrankatMSC
Level 4
May 8, 2026
Question

Custom Form field Validation that prevents access except from specific group

  • May 8, 2026
  • 1 reply
  • 15 views

Can a validation rule be setup that only allows users from a particular group to access a form field?  I’m trying something along these lines but I can’t get the syntax correct.

IF($$USER.groupIDs="69fcf9d70002183a0944fbb90b78a5ab", "Only members of the LP Approval group can edit this field.")

Any help would be appreciated.

Thanks

Frank

1 reply

ninoskuflic
Level 4
May 8, 2026

 Hey Frank,

 you’re on the right track. 😃
 

IF(
  CONTAINS($$USER.groupIDs, "69fcf9d70002183a0944fbb90b78a5ab"),
  "Only members of the LP Approval group can edit this field.",
  ""
)

 

For group IDs you’ll need to use contains as a user can be a part of multiple groups. You can also check just for one with groupID. 
 

Unfortunately this will block the whole custom form weather the user touches the custom field or not (that you’re protecting) so you’ll need to add the value (that the user is not allowed to set) of that field in the IF statement as well.

 

I’ll be back to my Mac soon so I’ll share some examples of that code as well.

If this solved your issue, please mark it as solved so others can find the solution faster.
ninoskuflic
Level 4
May 8, 2026
IF(
$$USER.{roleID} != "XXXXXXXXXXXXXXXX"
&& {DE:INTL - Custom Field That Needs Protecting} == "XYZ",
"Only authorised user can change this field value.",""
)

Here is the example where I check if the user has this role ID assigned to their profile. If they don’t and the value of the field is changed from whatever to XYZ, the system will tell the user that they cannot change it to that value. They need to restore the field value to a previous one and this will not prevent them from editing other non-protected fields. Hope this helps. 🤗

If this solved your issue, please mark it as solved so others can find the solution faster.