On Fri, Aug 6, 2010 at 12:46 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> This is correct. The issue is what is the purpose of the formname? It
> is a hidden field used to determine whether the form is being
> submitted or not. If you omit formname, web2py cannot determine
> whether the form is not submitted or it is submitted with all fields
> empty. It assumes the latter and applies validators. It is the
> validators that notify you of the errors.

OK, I see it now.
Is there a way to change how the custom.widget serialize? For example:
{{=form.custom.widget.texto}}
Gets serialized into:
<input class="string" id="sugerencias_texto" name="texto" type="text"
value="" />
But I want a textarea like this:
<textarea name="texto" cols="35" rows="8" id="question_2434"
onKeyUp="counterUpdate('question_2434',
'countBody','8000');"></textarea>
(but also to keep the validation provided by web2py).
Can I do this?

Reply via email to