Massimo,

Sorry, I'll try to explain better...

I know that the values are in request.vars, therefore I made the
observation: "form.accepts" failed even with all the values in
request.vars. :-/

The problem mentioned just occurs when I submit a form, created by
SQLFORM, via ajax.

I think it happens because of "ID" and "NAME" of the html objects are
created with different values when I use SQLFORM.

When I create a form manually with the same values for "ID" and
"NAME", as in the example on page 277 of the manual, it works.



On Oct 12, 10:51 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I am not sure I understand. the values are always in request.vars.
> Those values that pass validation they are copied in form.vars.
>
> On Oct 12, 7:46 pm, Renato-ES-Brazil <caliari.ren...@gmail.com> wrote:
>
> > I'm working with this idea again.
>
> > Clicking on the link "add" opens a div popup with a form to create the
> > record. This form is submitted via ajax, but I'm having a problem: the
> > validation with form.accepts is failing, but the values are in
> > request.vars.
>
> > Seems to be due to SQLFORM put different values for the attributes ID
> > ("tablename_fieldname") and NAME ("fieldname") in the objects.
>
> > I've created a form manually and put the same value for attributes
> > "ID" and "NAME", and it worked.
>
> > Any tips?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@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