Re: [web2py] Form with fields collected from javascript

2013-01-22 Thread Christian Espinoza
Hi Bruno, now my form at the view is: {{=form.custom.begin}} Name: {{=form.custom.widget.name}} {{=form.custom.submit}} {{=form.custom.end}} I'm was testing a lot of times a insert with it, and every first time I'm login to app this form doesn't insert the data and nothing else shows, after t

Re: [web2py] Form with fields collected from javascript

2013-01-21 Thread Christian Espinoza
Weird, because I'm noted that the first save process doesn't work, but from the second all work fine :-/ and I'm have the same code without changes... I'm have the trunk version.. El lunes, 21 de enero de 2013 17:12:38 UTC-3, rochacbruno escribió: > > SQLFORM expects a field named "fences_cu

Re: [web2py] Form with fields collected from javascript

2013-01-21 Thread Bruno Rocha
SQLFORM expects a field named "fences_customer" the pattern is tablename_fieldname --

Re: [web2py] Form with fields collected from javascript

2013-01-21 Thread Christian Espinoza
Hi Bruno I have on this way the code now at the view: {{=form.custom.begin}} Name: {{=form.custom.widget.name}} {{=form.custom.submit}} {{=form.custom.end}} and I getting the values for every input ok, but SQLForm doesn't store nothing at the db... Thanks Christian. El lunes, 21 de enero

Re: [web2py] Form with fields collected from javascript

2013-01-21 Thread Bruno Rocha
include hidden fields the use Javascript to populate $('#customer').val("something") --

[web2py] Form with fields collected from javascript

2013-01-21 Thread Christian Espinoza
Hello!! I have a Form for this table, but I'm only want to get the 'name' field from the user input. the other fields I need fill them from javascript vars... Model: db.define_table('fences', Field('customer', db.customer, label='Cliente', notnull=True), Field('name', leng