You need to sign in to do that
Don't have an account?
Sourav P
Field Dependencies on multiple picklist field values
Dear All, I need here your suggestion urgently. Now i know that we can make field dependencies for picklist values, but its only one to one . But my requirement is as per below,
Now, i want the field " Model Family" is to make dependent upon above two field " Make" and " Year of manufacture". To note that,, its not a hierarchy, i.e Make and Year of manuf. are not linked. If it would be a hierarchy, i could have created two field dependencies. But here how to go ahead. plz suggest? e.g here Model family should be show the picklists depends upon what been choosen on " Make" & "Year of manuf".
Now, i want the field " Model Family" is to make dependent upon above two field " Make" and " Year of manufacture". To note that,, its not a hierarchy, i.e Make and Year of manuf. are not linked. If it would be a hierarchy, i could have created two field dependencies. But here how to go ahead. plz suggest? e.g here Model family should be show the picklists depends upon what been choosen on " Make" & "Year of manuf".
VF Page:
Controller: I defined a dependency matrix as below
key : concatenation of 'Make' and 'Year of manifacture (Year Group)'
value : list of 'Model family's option value
Although there might be a better implementation, I hope this will help you!
All Answers
https://success.salesforce.com/ideaView?id=08730000000aCC3AAM
Look into using <apex:selectOption> and <apex:actionSupport> with event="onchange".
See also below
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_pages_selectoption.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
http://blog.jeffdouglas.com/2008/11/25/dependent-multilevel-selectlists/
VF Page:
Controller: I defined a dependency matrix as below
key : concatenation of 'Make' and 'Year of manifacture (Year Group)'
value : list of 'Model family's option value
Although there might be a better implementation, I hope this will help you!