You cant custum your form. this is one example a use. form=FORM(TABLE(TR("categorie:",A(category(1), _href=URL(r=request,c=request.controller, f='category', args=request.args))), TR("sous categorie:",A(category(3), _href=URL(r=request,c=request.controller, f='subcagegory', args=request.args))), TR("region:",SELECT(selectlabels ,_id="province",_name="province",_onChange="document.location='"+URL(r=request,f=request.function,args=request.args)+"?pro='+this.value;")), TR("ville:", SELECT(selectcities ,_id="city",_name="city",_onChange="ajax('"+URL(r=request,f='ajaxgetzone')+"',['city'],'z');"),DIV(_id="z")), TR("quartier: ",INPUT(_type="text",_id="zone",_name="zone",requires=IS_BAD())))) if form.accepts(request.vars,session): insertlocation =db.an_location.insert(province=form.vars.province,city=form.vars.city, zone=form.vars.zone) redirect(URL(r=request,f='attachimage',args=args,vars=var ))
On Thu, Nov 26, 2009 at 9:12 AM, kurdt <cai.hai...@gmail.com> wrote: > > hi, > > i am actually a django user, I want to try web2py, but I could like to > know if web2py has FORMS? Forms that can be customize not the one that > inherit from a MODEL. And of the coolest things I like about Django is > there FORMS, very flexible (adding custom function or overriding > function). Does web2py have Forms similar to django? > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web2py@googlegroups.com > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- Emmanuel Simo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.