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
SwayampravaSwayamprava 

On change of a picklist field value on the standard detail page, fields has to be readonly

on a detail page of opportunity  there is a picklist status with values a,b,c .

 

Question  1:

Opportunity has two related list  rl1, rl2

when  status value is 'a' rl1 should be visible. when status value is 'b'  rl2 should be visible.

 

Question 2:

On Opportunity  some other fields are there x, y z.

when  status value is 'a' x should be readonly. when status value is 'b'  yand z should be readonly.

sfdcfoxsfdcfox
1) You can do this if you use record types-- this allows different page layouts to be displayed.

2) You can do this if you use record types-- this allows different page layouts to be displayed.
SwayampravaSwayamprava

Thanks