Ð ÐÑÑ, 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 <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to