I don't understand the question. Validation takes place after the form
was submitted. Changing a select based on another is JavaScript only.
For dynamic option, this had been discussed numerous times in this
list. The trick is to pass a callable as options parameter. This could
use request.params to return options based on another field.
For the js-based solution, there are a few options. Use jquery to bind
the onchange event, and load the other options via Ajax.
I write this on an iPhone, so I can't supply any example code.
Diez
Am 05.06.2010 um 01:48 schrieb mpearce <[email protected]>:
I've been trying for a long time now to create a select field which
changes based on the choice made on another select field. I'm not sure
if this functionality can be built into the widget, or do I need to
manage it in my javascript code. The problem is trying to update the
select field with the correct data when the form fails validation. Can
someone please show me a working example.
Many thanks,
michael
--
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
.
--
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.