[Solar-talk] Hieriarchal Selects

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Dec 4 06:29:28 CST 2007


On Dec 4, 2007 10:22 AM, Kilbride, James P. wrote:
> This was done via javascript I believe in quick_form. This ability for
> hierarchal selects that are based on previous answers is extremely
> useful. Can this be done with solar? In quickform it was done with this
> code:
>
>      $sel =& $displayActivity->addElement('hierselect','Activity',null);
>      $sel->setMainOptions($area_select);
>      $sel->setSecOptions($activity_select);

It can be done, certainly, but no built-in support exists. currently
you'd need to make a form helper for this (if noone else have done it
before and can share), integrating the javascript to change the
dependent select elements depending on the option that is selected.

-- rodrigo


More information about the Solar-talk mailing list