Hi,

Sometimes within a form, some fields must be hidden/displayed based on
> a certain user input in previous field(s).
> Is there a way to pull this off using a Form widget?


I have a very dodgy hack I use myself to do this. I wouldn't advise
repeating my approach.

You could do this more neatly with a modified form widget. The form would
put an id tag on each item's "container". E.g, for a TableForm, the <tr> is
the container. You'd have some config in the widget setup, where you
associate item values with other items visibility. And you have some JS that
updates the display appropriately.

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to