Thanks for the help Max,

I couldn't figure out how to use FormValidator, but after looking as some
the discussions at the formencode site, I finally settled on making my own
validator and modeled it after the FieldsMatch validator.  Now it works just
like I want it, I can check the value of a field and if its set to a
particular value, I can make a second field required.

Jose

On 8/17/07, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
>
>
> On 8/16/07, Jose Galvez <[EMAIL PROTECTED]> wrote:
> >
> > I'm trying to use formencode to validate a simple form.  The question  I
> > have is:
> > How can I make a field conditionally required?  This is what I have, I
> > have a pull down, with an "other" option.  What I want to do is if other is
> > selected then have a textbox become visible and be required, but only be
> > required if "Other" is selected from the pulldown.  Is this possible? if so
> > how?
>
>
> If you have one field depening on other field you need a FormValidator
> which is called after individual fields are validated. Check the docs,
> FormEncode has some built-in validators for such cases.
>
> Max.
>
>
>
> >
>

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