creating dependent dropdown but at onload event ,dependent dropdown shows all the values

creating dependent dropdown but at onload event ,dependent dropdown shows all the values

Hi Arpit,

Can you explain your requirement and what you need to do with the drop down?

Thanks,

Will.

I have similar question how would I implement dependent drop down.
There are two dropdown Country_list and State_list. The option in the state_list should change based on value selected in the country_list.

The following query have been used to populate country_list. drop drown from database

$db = DBManagerFactory::getInstance($instanceName);

$query = “select id, name from Country”;

$result = $db->query($query, false);
$list = array();
$list[’’]=’’;
while (($row = $db->fetchByAssoc($result1)) != null)
{
$list1{ trim($row[‘id’])} = trim($row[‘name’]) ;
}
$GLOBALS[‘app_list_strings’][‘Country_list’]= $list;

Thanks