the line : echo $form['catcher_id'] gives me a dropdown list
when i choose another item from the dropdown i want to do a few things but my code not working:
$selected_catcher = $form['catcher_id'];
foreach($selected_catcher as $val)
{
$catcher_name = $val->getName();
echo $catcher_name." ".$val->getId();
if ($catcher_name = "zed-catcher")
{
echo $form['service_code']->renderLabel();
echo $form['service_code']->renderError();
echo $form['service_code'];
}
}
please help?
thanks