I'd use onvalidation http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation
On Sunday, October 6, 2013 1:05:44 PM UTC+2, Kees de Blois wrote: > > How do I send the variable of the drop down list to another function? > > def tekstperthema(): > response.flash = "Tekstregister items per thema view!" > form = SQLFORM.factory(Field('thema',requires=IS_IN_DB(db,db.thema.id, > '%(name)s'))) > if form.process().accepted: > response.flash = 'form accepted' > session.thema = form.vars.thema > elif form.errors: > response.flash = 'form has errors' > return dict(form=form) > > United Bible Societies Association, a company limited by guarantee. > Registered in England and Wales No 2264875. Registered Charity No 800058 > Registered Office: Stonehill Green, Westlea, Swindon, Wiltshire, SN5 7PJ, > England. > -- 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. For more options, visit https://groups.google.com/groups/opt_out.