[Solar-talk] Hieriarchal Selects
Kilbride, James P.
James.Kilbride at gd-ais.com
Tue Dec 4 06:33:27 CST 2007
That's what I was trying to find out if it had been done before and I
was just missing it.
James Kilbride
-----Original Message-----
From: solar-talk-bounces at lists.solarphp.com
[mailto:solar-talk-bounces at lists.solarphp.com] On Behalf Of Rodrigo
Moraes
Sent: Tuesday, December 04, 2007 7:29 AM
To: solar-talk at lists.solarphp.com
Subject: Re: [Solar-talk] Hieriarchal Selects
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
_______________________________________________
Solar-talk mailing list
Solar-talk at lists.solarphp.com
http://mailman-mail3.webfaction.com/listinfo/solar-talk
More information about the Solar-talk
mailing list