As Dave said: Javascript.

Either run a function that hides and shows a portion of your form or
have an EventHandler updating a section of your form via an ajax call.

I would personally go for having my sex field values as radio buttons
and including an onclick="$('idOfHiddenDiv').hide();" on Male button
and onclick="$('idOfHiddenDiv').show();" on Female one (requires
prototype javascript framework).

You need to check the value of the field within the view first to know
whether to add a style='display: none;' when you load the view.

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to