0

I want to make a field editable for only 3 people. I have given edit access from profiel, The field is read-only on Page layout . is there a way I can make this editable on page layout for these 3 people without creating new page layout and new profile?

3
  • 1
    Did you try with permission set, having the field editable on permission set and read only on profile? Or else, restricting edit through a validation rule for all users except for those three users? In both cases, the field would be editable on page layout Jun 3, 2021 at 18:49
  • restricting edit through a validation rule for all users except for those three users - I think this looks like only possible solution Permission set I have tried - there is no specific permission in permission set to give edit permission on page layouts
    – C0DEPirate
    Jun 3, 2021 at 18:53
  • Not specific to page layout, if you mark the field as ReadOnly at Profile level, then it should be readonly for all users for that profile, then mark the field as editable only on the Permission Set. Keep the field editable on the page layout. I haven't tried that, but it should work I suppose. Jun 3, 2021 at 18:59

1 Answer 1

2

There are two ways to achieve this:

  1. Keep the field editable on the Page Layout. Mark the field as ReadOnly at Profile Level. Next create a Permission Set with Edit Access on the desired field. Assign the Permission Set only to those three users.

  2. Else, create a validation rule, which restricts edit for the field for all users except for those three users. Refer below example

AND(ISCHANGED(Field_To_Check__c),
$Profile.Name < > "System Administrator",
$User.UserName < > "User Name 1", $User.UserName < > "User Name 2", $User.UserName < > "User Name 3")
2
  • 3
    A validation rule is generally a bad idea, as it gives the user the impression they can edit the field when, in fact, they cannot.
    – sfdcfox
    Jun 3, 2021 at 19:19
  • I would completely agree to this, I have just added it as just another workaround/option. But option 1 would be always preferable one. Jun 3, 2021 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.