In your controller:
form = SQLFORM(db.table)
form.element('input',_name='first_name')['_size'] = 20

In your view:
{{=form}}

On Jul 4, 10:07 am, elfuego1 <[email protected]> wrote:
> Hi,
>
> Can you show me how to customize a form?
> How do I use this piece of code to make the input field 20 signs wide:
>
> form.element('input',_name='first_name',_size='20')
>
> How do I use form.element syntax? Should I put into html code somehow
> or just into {{}} brackets?
> I ask because this syntax:
> {{=form.element('input',_name='first_name',_size=10}}}
>
> doesn't work :-(

Reply via email to