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

Preselecting a picklist value on a VF page

I have two objects Partnership and Participant where Participant is a child object of Partnership object in a Master Detail relationship.

I have a picklist  "Partnership Type "  on Partnership object with values {LP , LLC}  and other two picklist on Participant object named  "Partnership Type " with values {LP , LLC}  & "Participant Role" with values {A,B,C,D,E,F} . Partnership Type is controlling picklist  and Participant Role is dependent picklist

Now suppose I select a picklist value for "Partnership Type " in Partnership record then a child Participant record for that  shows only those values for Participant Role which are relevant to its controling picklist field

How could this be done? reply