1. for textarea, set _rows and _cols.
2. press shift-enter instead.
3. _disabled?

On Wednesday, December 5, 2012 6:46:16 AM UTC-7, Francisco Barretto wrote:
>
> Hi there, it might be (and probably is) a silly but I have a series of 
> questions concerning the following form:
>
> form=FORM(TABLE(TR("Nome:",INPUT(_type="text",_name="name", _value=
> user_name, _writable=False, requires=IS_NOT_EMPTY())),
>                         TR("Email:",INPUT(_type="text",_name="email",_value
> =user_email, _writable=False, requires=IS_EMAIL())),
>                         TR("Message:",INPUT(_type="textarea",_name=
> "message", requires=IS_NOT_EMPTY())),
>                         #TD(Recaptcha(request,__conf__.public_key(), 
> __conf__.private_key())),
>                         TR(TD(), TD(INPUT(_type="submit", _value="Send"),
> INPUT(_type="button",_value="Cancel",_onclick="javascript:history.go(-1);"
> ), INPUT(_type="button",_value="Clear",_onclick="this.form.reset();")))))
>
>
> 1) How can I set the number of rows and columns of a textarea in a regular 
> form?
> 2) How can I allow lines breaks ( \n ) in a textarea field? Actually when 
> I hit enter, it submits the form.
> 3) How can I set an input textfield as non-writable? '_writable=False' 
> doesnt work
>
> Thanks!
>
>
>
>
>

-- 



Reply via email to