form.element(_id='the_id_of_the_field')['_title']='the title of the
field'

This works. attributes must start with _. html.py is transparent to
them.


On Jan 28, 7:28 am, vihang <vihan...@gmail.com> wrote:
> I am building the form directly from SQLFORM. But I tried many
> combinations using form.element and accessing the form array directly,
> but does not work. Supposedly 'title' is not there in the input helper
> (html.py) on the first place.
>
> On Jan 28, 4:37 pm, tiago almeida <tiago.b.alme...@gmail.com> wrote:
>
> > Have you tried using the optional parameter _title when building your INPUT
> > object?
>
> > INPUT( ..., _title="my Title", ...)
>
> > ---
>
> > On Thu, Jan 28, 2010 at 8:33 AM, vihang <vihan...@gmail.com> wrote:
> > > Any idea how I can access or add 'title' attribute for input elements?
> > > Cannot see it anywhere in the html.py.
>
> > > 'title' is used for tooltips text.
>
> > > Thanks
>
> > > --
> > > 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<web2py%2bunsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/web2py?hl=en.
>
>

-- 
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