1

I've one object obj1 and field on that object field1 and one profile Billing User.

one Custom Button on obj1. when click on button. it will check the field1 to true for all the profile.

But i want field1 such that it should read only from page layout but it edit from apex, only for Billing User Profile.

how can i do?

9
  • only for one user or for particular profile?
    – Ratan Paul
    Jul 18, 2016 at 10:41
  • @Ratan. for Particular Profile
    – user29314
    Jul 18, 2016 at 10:44
  • why don't you just create a different pagelaout and make the field read only from pagelayout and assign to that profile ..
    – Ratan Paul
    Jul 18, 2016 at 10:47
  • @Ratan. So as per your ans. I've 12 Record Type on this Obj. Thus i need to create 12 different Page layout for that Profile and make field read only from page layout and assign to That Profile. Is It Correct?
    – user29314
    Jul 18, 2016 at 10:57
  • ohh 12 layout.. this is little bit hard job I guess... not good idea.. if you have created 12 recordTypes then I guess you already created pagelayout for them isn't it?
    – Ratan Paul
    Jul 18, 2016 at 10:59

2 Answers 2

1

You can set the field as Read Only on page layout.

enter image description here

1
  • The page Layout assign to Multiple Profile, if we use like this then field we be read only for all profile but i want field editable for all profile except one profile
    – user29314
    Jul 18, 2016 at 11:26
0

From the "Quick find" box on the left search for "Field Accessibility" then choose your "obj1". Select "View by fields" and choose "field1". For each profile select "Read Only" besides for "Billing User".

2
  • yes it will be read only but it read only for apex class also and this field will not update through apex class. I want this field update by apex class and not manually only for that Profile
    – user29314
    Jul 18, 2016 at 10:42
  • How about go to profile, select your "Billing User", and under "Enabled Apex Class Access" add the apex class you want to give edit permission to. I have not tried it, but this might work.
    – user8310
    Jul 18, 2016 at 11:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .