This

  form.element('input',_name='first_name')

selects the element. This

  form.element('input',_name='first_name')['_size']='20'

sets the attribute _size. This is equivalent

  form.element('input[name=first_name]')['_size']='20'

This may be better done with CSS

   input#table_field { width:200px; }

On 4 Lug, 10:07, 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