Thank for your suggest.
I am amazed because my code SQLFORM contains two fields, only one with
widget that i made.
Observing the result html page code there is no evident difference
between two fields.
Correct id and correct name, but only one exists in form.vars.
I thougth that every input tag existing in form becames form.var, but
apparently it is false.
So, to debug my error, I need know how form.vars are built and where
in web2py code.
Can you suggest where i can address my attenction?
Thanks
leone


On 13 Giu, 03:44, Iceberg <iceb...@21cn.com> wrote:
> On Jun12, 12:47pm, leone <handja...@gmail.com> wrote:
>
> > I coded a widget to use with a Field object.
> > Because I need some javascript actions i wrote pure html-javascript
> > code that my widget returns.
> > It runs, but when I accept the form values are in request.vars, but
> > not in form.vars.
> > How can i store values in form.vars without using input widgets
> > defined by  SQLFORM.widgets...?
> > Thanks in advance
> > leone
>
> You'd better let your widget derive from the default widgets, or you
> need to make sure yours contain proper _id and _name etc.
>
> See alsohttp://web2py.com/book/default/section/7/5?search=widgets

Reply via email to