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
RuchieRuchie 

Dependent Picklist

Hi All,
Can anybody tell, how to get values of a dependent picklist? For eg: If we have two picklist- Status and Stage, and if Stage is dependent on Status. So, through sforce.connection.describeSObject, we can get all the picklist values of status, but how to get the picklist values dependent on the status values, in an S-Control.
 
Please help
 
RickyGRickyG
Ruchie -

Have you thought about using Visualforce to implement a dependent picklist functionality?  This involved using a related object to specify the dependent picklist values, and you can easily query that object to get the dependent values.  Plus, Visualforce is a better solution than s-controls.

Hope this helps.