This is the test code... View: <form> <select name='authtype' onchange='this.form.submit()'> <option>AD</option> <option>Local</option> </select> <noscript><input type="submit" value="Submit"></noscript> </form> {{if authtype == "AD":}} {{form}} {{elif authtype == "Local":}} {{form2}} {{pass}}
The controller is quite simple: def test(): authtype = request.vars.get("authtype") or "AD" return dict(authtype=authtype,form=auth(),form2=auth2()) auth and auth2 are defined in db.py. The forms work well if they are in two different views As you can probably see, I'm quite a beginner... -- --- 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.