Search code examples
phpzend-frameworkcomboboxzend-formzend-studio

Zend - combobox value depending on another combobox value


Is there a way in Zend Framework to fill a combobox with values depending on the value chosen in a previous combobox, but on the same page?

In my case I have a combobox for domain and one for specialization. If i choose Informatics in the first combobox (domain), I want to fill the second one with a single specialization - "Informatics". But if I choose Math in the first, I want to fill the second one with two specialization: "Mathematics" and "Mathematics & Informatics".

Thank you! Sorin


Solution

  • I've used a very simple solution: I've put the option to choose the domain on one page and the option to choose the specialization on another page, based on the domain chosen.