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
SFDC ROCKSFDC ROCK 

how to restrict extra value on dependent field values ?

Hi All,
when ever we are selecting any record from list view and changing the lead status.
suppose lead status value:Open - Not Contacted 
and dependent value : A,B
User-added image

and after changing lead status value:Working - Contacted​​​​​​​ 
we are not chaning the depend field so the value is still same A ,B
which is not correct because for Working - Contacted we have dependent value :C and D
User-added image

how can we change dependent value also or restrict  wrong value ?

as we can see the extra picklist value is coming as below : A is not correct value for Working - Contacted​​​​​​​ .
User-added image
 
AnudeepAnudeep (Salesforce Developers) 
Hi Subodh, 

Is the field dependency configuration setup correctly in the org (Both the Controlling Field and the Dependent Field)? You can test the dependency by clicking preview as shown in the below module

https://trailhead.salesforce.com/en/content/learn/projects/customize-a-salesforce-object/picklists-field-dependencies

Anudeep