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
alockremalockrem 

Dependant drop-downs on force.com

I need to populate a collection of drop-down boxes based on the previous selection.  The custom object structure is:

 

Categories

CategoryID

CategoryName

ParentCategoryID

 

The first drop-down box should be populated with everything with a ParentCategoryID of 0.  The subsequent drop-down boxes should appear and be populated with CategoryNames where the ParentCategoryID is equal to the value from the previous drop-down box.

 

Any help is greatly appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
jeffdonthemic2jeffdonthemic2

Check out my blog post for an example with code:

 

Dependent Multilevel Selectlists

 

Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com 

All Answers

jeffdonthemic2jeffdonthemic2

Check out my blog post for an example with code:

 

Dependent Multilevel Selectlists

 

Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com 

This was selected as the best answer
alockremalockrem

Perfect!  I am going to work on it right now.

 

That is exactly what I needed.   Thank you for your help.