[web2py] Re: custom form validation doesn't work

2015-05-10 Thread Anthony
That doesn't necessarily sound like the same issue. Please show some code and explain what you expect and what you see instead (maybe start a new thread). On Sunday, May 10, 2015 at 10:01:54 AM UTC-4, Thomas Sitter wrote: > > Hi Massimo, > > I am getting this same issue (onvalidation function no

[web2py] Re: custom form validation doesn't work

2015-05-10 Thread Thomas Sitter
Hi Massimo, I am getting this same issue (onvalidation function not getting called), but I am use SQLFORM and not Crud so the solution posted does not apply to me. Has this been resolved elsewhere? Thanks. Tom On Saturday, 15 December 2012 18:27:51 UTC-5, jonas wrote: > > Hi. > > I have a def

[web2py] Re: custom form validation doesn't work

2013-09-27 Thread Massimo Di Pierro
The problems was identified by Anthony in this thread: https://groups.google.com/forum/?fromgroups#!searchin/web2py/custom$20form$20jquery/web2py/7Meea7Ul0o8/4ZdrD9hP5MEJ On Saturday, 15 December 2012 17:27:51 UTC-6, jonas wrote: > > Hi. > > I have a default form that is passed in view: {{=form}

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Jonas Fredriksson
I send the app to your gmail address. On Sun, Dec 16, 2012 at 4:35 PM, Massimo Di Pierro wrote: > This should work. I do not see why it does not work. Can you email me, > perhaps privately, an example app so I can reproduce it? > > > On Sunday, 16 December 2012 09:26:54 UTC-6, jonas wrote: >> >>

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Massimo Di Pierro
This should work. I do not see why it does not work. Can you email me, perhaps privately, an example app so I can reproduce it? On Sunday, 16 December 2012 09:26:54 UTC-6, jonas wrote: > > here is the custom form: > > {{=form.custom.begin}} > > date: {{=form.custom.widget.created_on}}

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Jonas Fredriksson
here is the custom form: {{=form.custom.begin}} date: {{=form.custom.widget.created_on}} name: {{=form.custom.widget.created_by}} mail: {{=form.custom.widget.mail}} link: {{=form.custom.widget.link}} comment:{{=form.custom.widget.comment}} {{=form.custom.sub

[web2py] Re: custom form validation doesn't work

2012-12-16 Thread Massimo Di Pierro
Hello Jonas, Can you show us your custom form, the one that does not work. Validation and form processing are done before the view is execued therefore it cannot affect form validation and processing. perhaps that is something in the custom form that prevents error messages from being displayed

Re: [web2py] Re: custom form validation

2012-12-15 Thread Jonas Fredriksson
ok. another thing is that if I use a regular form, {{=form}}, then validation works but not if I use the custom form. Also form.process() works, so the problem seems to be related to custom forms. On Sat, Dec 15, 2012 at 4:06 AM, Anthony wrote: >> form=crud.create(db.comments) >> if form.

[web2py] Re: custom form validation

2012-12-14 Thread Anthony
> > form=crud.create(db.comments) > if form.process().accepted: > Crud and form.process() do not go together. Crud is a higher level interface and automatically handles form processing. Once you call crud.create(), the form is already processed -- processing it the second time will not