[Zope] Form validation
Joel Burton
joel@joelburton.com
Thu, 14 Mar 2002 09:10:24 -0500 (EST)
On Thu, 14 Mar 2002, Wayne Pascoe wrote:
> Hi all,
>
> Quick question ...
>
> I want to do something that I can in Perl using Template toolkit and I was
> hoping that someone could point me at some code showing how to achieve this.
>
> When a user fills out a form and hits submit, I want the action page /
> method to check that all required fields are filled out and all filled out
> values are valid for the field.
>
> If there are any values that are not correct, I want to display the original
> form, with all fields that did have values prefilled and something like
> * Invalid date format
> Or
> * Required field
> In red under the field that is wrong or not filled out.
Get the product Formulator from zope.org and look at the examples.
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant