I am looking for an example for validating input (using requires = 
> IS_IN_DB) against form.vars before submit.
>

      You mean you want to test an html form values to match a set of db 
values client-side?

I am trying to have a form with three fields,
the first one needs to to validated against data base (this can be done in 
the controller by field1.requires = IS_IN_DB(...)) , 
the second one needs to be validated against data base and the entered 
value of field1 ( field2.requires = IS_IN_DB(.....form.vars.field1.....))

I am generating the form using SQLFORM.






-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to