function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Am123Am123 

Make field read only

Hi,

 

I have a field on opportunity and when this opporunity is created from a Lead I need to make a certain field to be read only. If opportunity is made directly then this field can be editable.

 

How can I do this?

apaiapai

Fields can be made read-only either from a page layout or by using the field-level security settings.

Ankit AroraAnkit Arora

This is correct -> "Fields can be made read-only either from a page layout or by using the field-level security settings."

 

But the behavior is same on all the screens and you can not conditionally make fields read-only. One way is to achieve this is via visualforce page.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page