I would look at the "FieldsMatch" validator in FomEncode and modify it for my purposes (the code is in Formencode-xxx/formencode/ validator.py). I definitely think this is do-able. Passing messages to your form is going to be a lot harder, since it involves a certain amount of "magic" to do it the way it works right now.
In any event, if you get this working, please post the code, I think it would be useful for many of us to see. cheers. -chris On Jan 17, 1:46 am, GSP <[EMAIL PROTECTED]> wrote: > Is it possible to perform conditional validation of form fields? The > documentation states that it is possible to perform complex nested > validation however, I have yet to see an example online or in the > Turbogears book. Basically, my problem is as follows: > > if field_a is not None: > validate field_b. > > Seems rather simple right? There must be an easy way to do this. In > the event that Schema validation does not accommodate this use case, I > am fine with performing the validation manually in the controller > method but I am unsure of how to propagate the error messages back to > the view in a way that the error display will 'just work'(for example > in table forms). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

