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
iqbaliqbal 

Field manipulation in the page layout

Hi All,
 
I am creating a custom objectwhich has 20 fields in the page layout.One of this is a picklist field with 2 values.My requirement is that if i choose 1 particular picklist value,then some fields in the pagelayout should be made readonly.
This should be done on a realtime basis.
 
Kindly help me to figure out a solution for this.
 
Thanks & Regards,
VN
Joe2008Joe2008

Hello,

What i can think of  is to check the value in the picklist and make sure the fields which should be readonly for these values

does not get changed by the user(in a way read only) by creation validation rule as below:-

AND(
OR (
ISPICKVAL(  Picklistfield2__c, "value1"),
ISPICKVAL(  Picklistfield2__c, "value2"),
ISCHANGED(Field1),
ISCHANGED(Field2))
)

Not sure if this helps you
 
Joe