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