Some of the new features enabled by Sugar Logic are not yet available from Studio. One of those features is dependent dropdowns. However, creating a dependent dropdown in Sugar 6.1/6.2 is as easy as creating simple vardef extension metadata file and performing a quick repair.
Lets say we wanted to have a Subindustry field in Accounts driven by the value of the Industry field. We can limit the visibility of the field as well so that its only visible when one of a couple of the values available in the Industry dropdown are selected.
Lets say we wanted the mapping:
Education: College, High School, K-12
Banking: Commercial, Investment, Retail, Credit Union
First, we will need to create the subindustry_c dropdown field in studio. We need to create a dropdown list that has all the values that we would possibly want to have as a subindustry. I also recommend using keys that will be easy to map to a parent key in the Industry list. So for subindustry we can use the following list.
Once we have saved the new field and added it to the layouts, its time to make it dependent. We can create a vardef extension file in “custom/Extension/modules/Accounts/Ext/Vardefs/sub_industry_dep.php”
You should now have a working dependent dropdown.