Any chance to get a similar slice for how to customize error messages
in view? I.e. have them all show up in a specific place in a view
(rather than the default of under every input field), and using
specific CSS classes, etc.?

Great tutorial for forms.custom!!




On Dec 15, 8:32 pm, "mr.freeze" <nat...@freezable.com> wrote:
> I made a slice with a few more 
> examples:http://www.web2pyslices.com/main/slices/take_slice/43
>
> On Dec 15, 4:17 pm, "mr.freeze" <nat...@freezable.com> wrote:
>
> > 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.


Reply via email to