The Official Salesforce Blog

The Official Salesforce Blog

Dependent Drop Downs

Jamie Grenney Feb 11, 2005

Many companies require dependent drop downs for things like case categorization. There’s a neat trick using that Graham Rowe came up with leveraging scontrols, an enterprise edition feature. Attached are details on how to set it up along with screenshots. Keep in mind this requires some technical knowledge to execute.

Download dependent_drop_downs.PDF
Download double_drop_down_example.txt

Download triple_drop_down_example.txt

 

7 Comments

Alan Collins

Create an scontrol (see file ‘triple dropdown example.txt’)

Didn't see any sforce control in this text?????

Yvan Poulin

See the source of the 3 files attached

Tim Hensler

I solved a couple of problems I had when a category had no sub category entries, but I'm having trouble solving a problem with the "Update Case Record" function. When I click the "Save" button, nothing happens. I am getting a status value back from the server of 500 rather than 200.

Anyone have a solution?

Anyone have another version of this double/triple dropdown for opportunities (or a list of chnages to make it work for opportunities)?

Tim,

Double check the created custom fields on the case entity 'Category' and 'Sub category'. This technique utilises the API and currently needs EE to be run.

Next step if still failing is to look at the HTTP response. Add an alert after the xmlhttp.Send:

alert(xmlhttp.responseText);

Regards,
Graham

Niclas

This is great, any instructions on how it is done perhaps?

Adam Getz

This is a great example of developing dependent fields in an SControl.

Do you have any examples of how to populate the values in Category, Sub Category, and Item in the Sforce Control from the existing Case? So if the case has these values already, then is there a way to default the same values in the Sforce Control?

Bob Gumaer

Will this help with product pricing?

We have categories of price associated with each product entered for an opportunity. Examples are Hosting Service, Implementation Service, Maintenance, etc. that are unique to the Product. I don't want to have to set up each one of these in a long list with the Products as this would make the selection list at least 5 times as long, and trouble for the sales rep to enter. These sub-categories need to roll up into the Product and opportunity total.

Post a comment