> 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.....)) >
Can you be more specific about the validation -- what do you mean by "against the database and the entered value of field1"? What does IS_IN_DB(.....form.vars.field1.....) mean? Anyway, you probably have at least a couple of options. When defining the validator (which happens before the form is processed), you can refer to request.vars.field1 rather than form.vars.field1. Another option is to use an onvalidation function rather than a validator for field2. Anthony -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

