figured out no longer needed
On Wednesday, November 22, 2017 at 12:49:23 PM UTC+1, Simona Chovancová
wrote:
>
> Hello.
>
> I have a form in web2py that controls editing and adding new user. But
> some fields need different requirements based on when user is being added
> or edited. Can I somehow change field requirements in view? I can only
> detect this in view. So far I came up with something like this, but it does
> not work.
>
> {{userform.custom.widget.name['requires'] =
> IS_EMAIL(error_message='invalid email!')}}
>
> Any ideas? Thanks for help.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.