You can always change requires on the fly.

def action(): # over simplified
  if request.vars.condition:
    db.tab1.f1.requires=another_validator(...)
  form=...


On Dec 2, 4:57 am, António Ramos <[email protected]> wrote:
> hello,
> in a model i define a table tab1 and a field f1 that if some condition is
> met should be not empty, otherwise could be empty
>
> How do i code this situation at model level?
>
> Best regards
> António

Reply via email to