[web2py] Re: widget and its form

2010-01-14 Thread leone
Ach! Thanks. Now it runs. leone On 14 Gen, 15:13, mdipierro wrote: > You have Field('name',type=None) and this cannot be. > > On Jan 14, 7:35 am, leone wrote: > > > > > I am trying to build a complex widget that mixes helpers (an INPUT > > helper) and plain html code that include others input ta

[web2py] Re: widget and its form

2010-01-14 Thread mdipierro
You have Field('name',type=None) and this cannot be. On Jan 14, 7:35 am, leone wrote: > I am trying to build a complex widget that mixes helpers (an INPUT > helper) and plain html code that include others input tags used by > javascript. > It output all by (DIV object).components.extend([...,...]

[web2py] Re: widget and its form

2010-01-14 Thread leone
I am trying to build a complex widget that mixes helpers (an INPUT helper) and plain html code that include others input tags used by javascript. It output all by (DIV object).components.extend([...,...]). It is all ok when SQLFORM.factory displays it, but fail when I accept the form:

[web2py] Re: widget and its form

2010-01-14 Thread leone
I am making a widget with more fields that must return a single value when form is submitted. I have two way (I suppose..): to use javascript at the submit event of specific form (I need form id) or/and to put validation code in widget function. The better should be have code to study to discover t

[web2py] Re: widget and its form

2010-01-13 Thread mdipierro
> How a widget can know the name and id of the form in which it resides? The built-in widgets do not know. You can make your own widget and pass the information to it. What do you have in mind? On Jan 13, 12:13 pm, leone wrote: > Is it possible to use javascript function on submit? yes. Look in