Nevermind, 
           I was able to achieve that using nested functions. Thanks!

Rahul

On Wednesday, June 2, 2021 at 3:05:32 PM UTC+5:30 Rahul wrote:

> Hi All,
>          It may be simple one but I want to know how to *add multiple 
> onvalidation functions/methods* in my code. For example If I want to 
> check for userlimit reached for users before adding one as well as want to 
> check for duplicate users for the same form which exists in other function. 
>
> form = SQLFORM(db.numbers)
> if form.process(*onvalidation*=*my_form_processing*).accepted:
>       do something .... 
>
> def my_form_processing(form): 
>        do something ... 
>
> Regards,
>
> Rahul
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/573b1857-388b-4460-aa44-1d4850867816n%40googlegroups.com.

Reply via email to