If you set allow_extra_fields=True and filter_extra_fields=False on
your schema then you would only need to specify the fields you need
validated.  I don't recommend this though because then you could
receive any fields and since its a truly public interface that is
probably a bad idea.  So I would specify a validator for all your
fields and just set not_empty=False on the validators.

On Sun, Feb 28, 2010 at 5:52 PM, Mark <[email protected]> wrote:
> Hi,
>
> I'm relatively new to FormEncode and its methodologies.  I was
> wondering if we need to validate an optional field, for example, a
> description textbox in my registration form.  The desired result would
> be that the user can choose whether or not to fill out the description
> text box.
>
> My Question:
>
> Say I have 8 fields (select boxes, textareas, text input fields) in my
> form.  In the class that subclasses formencode.Schema, do I need to
> specify a validator for EVERY field in the form OR can I just specify
> a validator for the fields I want validated?
>
> Thanks
>
> -Mark
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" 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/pylons-discuss?hl=en.
>
>

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

Reply via email to