element and elements take any combination of args and keywords and cycle through the form components looking for match(es)
form.element('input',_type='text')# grabs the first text input form.elements('input',_type='text')# grabs all text inputs form.elements('input','textarea') # grabs all inputs and textareas On Dec 15, 2:02 pm, waTR <r...@devshell.org> wrote: > Is there a definition of all possible arguments for form.element and > some examples somewhere? > > I am mainly looking to use it with SQLForm and factory(). > Specifically, I want to create a form with SQLForm & factory, and then > modify some of the elements to be things other than text boxes, i.e. > to change some to drop-downs with some choices, and others to radio > buttons, etc. > > Is the above possible? And with what element argument? -- 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.