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
anil87anil87 

Trigger to make a field as read only

Hi Everyone  

                    I'm writing a trigger on the Oppotunity object, which would capture the Opp Products into the Fullfillment Parts object (custom object).i have value1,value2 fields in opp product i need to copy these two fields into fullfillment part object on fullfillment object the value1 field should be readonly and value2 should be editable...how can i do this

Sfdc11Sfdc11

you can make the fields as readonly @ the pagelayout level /field level security.