cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timur Izhbulatov <...@yxo.ru>
Subject Re: Forms with "conditional" parts
Date Thu, 26 Aug 2004 22:23:47 GMT
В Втр, 24.08.2004, в 14:10, Bart Molenkamp пишет:
> Hi,
> 
> I need to create a form on which a user can select some option, and
> depending on that option, needs to fill in some other fields. For
> example:
> 
> (*) option X
>     field A [_______________}
>     [X] some boolean
> 
> ( ) option Y
>     upload widget [_______________________] [browse...]
>     ( ) some selection list
>     (*) ...
>     ( ) ...
> 
> ( ) option Z
>     field B [________________]
>     field C [________________]
> 
> I the sample above (I hope that the ASCII art is clear), I've selected
> option X, which means that I need to fill in "field A" and "some
> boolean". When I've selection option X, I don't want to validate any
> children under "Option Y" and "Option Z". What would be the best way to
> do this? Do I need to write my own widget for that?
> 
> Bart.

Think you could chek the carselector sample. It demonstrates CForms
event handling.
Alternatively, you could create a separate form for each case
-- 
Timur Izhbulatov <tim@yxo.ru>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message