form.element(_id='...')['_placeholder']='...'
On Jun 23, 9:24 am, Carl <m...@carlroach.com> wrote: > I'm using custom forms in my views using this format: > {{=form.custom.widget.first_name}} > > I'd like to use HTML's placeholder attribute to input tags: e.g., > <input type="text" placeholder="first name" /> > > Today: what are the ways to enable this? Obviously happy to drop the > {{=form.custom.widget.first_name}} format and use something else. > > Tomorrow: might it be a good idea to add placeholder attribute to > db.Field() in a similar fashion to how 'label' has already been added?