Dynamic Picklist - Sub Industry based on Industry aka Cascading Picklists in Microsoft CRM
This contains sample code that demonstrates how to implement dynamic picklists on a custom entity. It creates a custom entity named “Dynamic Picklist Test” that contains Industry and Sub-Industry picklist fields. When a value for Industry is selected, the values in the Sub-Industry picklist field are filtered. If there are no sub-industries for an industry, the Sub-Industry field is disabled.
See how the Sub-Industry Field isn't even an option. :-)
The pick list for the accountants.
The picklist for the consulting industry.
The sample files are not intended to be used in a production environment without prior testing. You should deploy this sample to a test environment and examine it for interaction or interference with other parts of the system.
Click here for the download. And READ the ReadMe.doc file!!!