IS_EXPR(expr)

the expr string is executed in a scope that only sees the "value"
variable. If will not see anything else.
I think you want

IS_EXPR('value!=%s' % repr(request.vars.field1))

Massimo




On Nov 10, 7:36 pm, pigmej <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to check that the value is/isn't the same in two different
> fields, in one form.
>
> I'm trying to do it with IS_EXPR but no idea how...
>
> I tried:
> in validation of field2
> 1. IS_EXPR('value!=form.vars.field1')
> 2. IS_EXPR('value!=field1.value')
> 3. IS_EXPR('value!=field1')
>
> Always error...
>
> Is it possible to do with web2py validation ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to