Sorry my point is it is not working.  Nothing is getting set.  It
could be my wierd schema validator setup.  Will validators change the
values before the form is displayed even before a submittal?
Can I give validators to each form element AND to the form itself?  Like this:
form = wigets.TableForm(fields=[widgets.TextField(name="color",
validator=validators.String()], validator=MyFormSchema()])

I didn't want to list the form elements out in a schema AND the form
but I also need to use NestedVariables.

Thanks.

-Ian

On 7/25/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> "Ian Wilson" <[EMAIL PROTECTED]> writes:
>
> > Hello,
> >   As many examples as there are its still hard to find in depth
> > examples.  How can I set values in a MultipleSelectField at display
> > time(not using default)?  RIght now I have a values dictionary:
> >
> > values = dict(colors=[1,2])
> > And I pass it into the form in the template like this:
> >
> > ${form(value=values)}
> >
> > And the MultipleSelectField is named colors.
> >
> > Is this correct?
>
> You don't need "value=", you can make it simply
>
>  ${form(values)}
>
>
> Be seeing you,
> --
> Jorge Godoy      <[EMAIL PROTECTED]>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to