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 the web2py way to
solution.
Thanks
leone

On 13 Gen, 19:26, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > 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 <handja...@gmail.com> wrote:
>
> > Is it possible to use javascript function on submit?
>
> yes. Look into web2py_ajax.html. It does that.
>
>
>
> > Thanks
> > leone
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to