1. Modify the [url removed, login to view] illustrated below so that it works for a multiselect field, and that an admin user can put any name to the custom multiselect field.
[url removed, login to view]
2. Assume that an admin user creates a master dropdown list, its children lists, and two multiselect fields - multiA and multiB for the Account module. Change the line that includes onchange="initData();" to something like onchange="initData("multiA", "multiB");" in [url removed, login to view] so that an user can specify the field names defined in Studio.
3. Assume that the name of the first (master) drop down list is account_mcategory_list that includes;
mcat01 => Technology
mcat02 => Manufacturing
mcat03 => Government
The custom multiselect field "multiA" has the account_mcategory_list.
The child dropdown lists will be;
tech1 => IT
tech2 => Biotechnology
tech3 => Aerospace
manu1 => car
manu2 => airplane
manu3 => machine
When mcat01 (Technology) is selected in the multiA field, items in the mcat01_list is displayed in multiB. When mcat02 (Manuacturing) is selected in the multiA field, items in the mcat02_list is displayed in multiB.
4. When multiple items are selected in multiA, all of items in corresponding lists are displayed in multiB.
5. The whole modification should be upgrade-safe, and installable onto the Accounts module as a custom module.