Can you share the code you have so far?
I'd probably do something like:
form = SQLFORM.factory(...your form definition here...)
if form.process().accepted:
if form.vars.field_1 == 'some test case you want to redirect on':
redirect(URL('my_redirect_url', vars=dict(my vars to pass to the
redirect))
elif form.vars.field_2 == 'another test case you want to redirect on':
redirect(URL('my other redirect url')
-Jim
On Thursday, August 25, 2022 at 12:48:05 AM UTC-5 [email protected] wrote:
> I have a form with a few selections but I want to redirect it to a other
> page depends on the selection does someone know how to do that ?
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/dcf5bc27-40f9-4013-b5c4-ca3792d74db1n%40googlegroups.com.