I think

{{form.element('input',_name='name')['_size']=50}}

On Sep 1, 4:14 pm, "david.waldrop" <[email protected]> wrote:
> I am trying to customize a form by explicitly specifying the length of
> the namefield :
>
> {{form.element('input',name='name')['_size']=50}}
> {{=form.custom.begin}}
> <table border="1">
>         <td>{{=form.custom.widget.name}}</td>
> ...
>
> This does not seem to work.  I have tried putting the statement
> changing the size both inside the form.custom.begin and where it is
> now.  I get a message "TypeError: 'NoneType' object does not support
> item assignment"
>
> Does anyone have an example of how to do this?
>
> Also, I saw a previous post requesting some type of examples of the
> various elements that was never answered.  This would be extremely
> useful in my opinion.

Reply via email to