You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Syama Thota <st...@yahoo.com> on 2004/09/04 08:24:11 UTC
CForms: Is it possible to populate the the drop down list dynamically?
Hi,
I have a form with three drop down lists (list1,
list2, list3), the contents in list2 are populated
depending on the list1 selection, can it be done in
Cocoon CForms?
Here is an example:
Say list1 is list of countries
and list2 is list of states for the selected country.
So only On list1 selection, I can display list 2
entries
(I think one solution could be changing the form
definition on each selection, it is dynamic and too
complex I think)
is there any simple way, please let me know.
Thanks in advance.
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms: Is it possible to populate the the drop down list dynamically?
Posted by Superbiji <su...@gmail.com>.
Use binding, use javascript:
add code:
widget.setSelectionList( "cocoon:/somepipeline" )
Many way to approach this,
see car selector example
On Fri, 3 Sep 2004 23:24:11 -0700 (PDT), Syama Thota <st...@yahoo.com> wrote:
> Hi,
> I have a form with three drop down lists (list1,
> list2, list3), the contents in list2 are populated
> depending on the list1 selection, can it be done in
> Cocoon CForms?
> Here is an example:
> Say list1 is list of countries
> and list2 is list of states for the selected country.
> So only On list1 selection, I can display list 2
> entries
>
> (I think one solution could be changing the form
> definition on each selection, it is dynamic and too
> complex I think)
> is there any simple way, please let me know.
>
> Thanks in advance.
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms: Is it possible to populate the the drop down list dynamically?
Posted by Jens Maukisch <co...@maukisch.net>.
Hi,
> I have a form with three drop down lists (list1,
> list2, list3), the contents in list2 are populated
> depending on the list1 selection, can it be done in
> Cocoon CForms?
Have a look at the Carselector sample
(http://localhost:8888/samples/blocks/forms/carselector)
hth
--
* best regards
* Jens Maukisch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org