formEncode and validation depended on forms field

  • Thread starter =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=
  • Start date
?

=?ISO-8859-2?Q?Grzegorz_=A6lusarek?=

Hi all. I'm using formEncode to validate my forms, and I'm stopped
on how to do a complicated validation that depened on what forms
element was filled. I mean in my code (without formEncode) i have:
if form.select is checked:
#if select is checked then I checked for others fields on form
#if select is not checked that I abandon validation
code...
else:
if form.login != '' and form.password !='':
code..
else:
code..

How to achieve something like this in formEncode? i can validate all
form but I need validate some fields of form only if others form are
filled.
Thanks for any help
Gregor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top