You need to sign in to do that
Don't have an account?
Pronow
How can I make a lookup field read-only?
Hello there,
I have a junction-like object of two lookup fields. Now I want those two fields to be read-only on their page layouts. How can I make it?
I used all ways like Page Layout, Field level security, Profiles, etc.
Please help.
Thanks in advance.
I have a junction-like object of two lookup fields. Now I want those two fields to be read-only on their page layouts. How can I make it?
I used all ways like Page Layout, Field level security, Profiles, etc.
Please help.
Thanks in advance.
Checkout field level security for that field with the profile of that user by using which u r not able to see that field.
just check visible checkbox in field level security for that profile.
Also see the threads below,
https://developer.salesforce.com/forums?id=906F00000008lxUIAQ
https://developer.salesforce.com/forums?id=906F00000008rSEIAY
Regards,
Ashish
if you go to your custom object / in the Custom Fields & Relationships section click on Edit next to your lookup field, uncheck the Allow reparenting checkbox,
then these fields wont be editable on your custom object
or you can create a validation rule on the custom object and allow only sys admin to edit these fields,
AND(
$User.ProfileId <> "sysadminprofileId",
OR( ISCHANGED(field1), ISCHANGED(field2)))
ISCHANGED( LookupFieldName__c )
This would let the user update a value of your field when inserting, but won't allow the user to update the field-value after the record is inserted, and since FLS is profile specific, this might satisfy your requirement
.try to edit that field.