[web2py] Custom form errors style

2019-08-22 Thread Patito Feo
Hi, I need to disable the form error_wraper DIVs or custom style those. How can i do either of those? Regards, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issu

Re: [web2py] custom form web2py not work when i use selectpicker

2018-08-21 Thread Carlos Correia
Às 20:41 de 21-08-2018, Rodrigo Gomes escreveu: > thanks, but the problem is not adding the selectpicker in the selects, the > problem is that by adding it to any select it does not recognize the input > data > > terça-feira, 21 de Agosto de 2018 às 14:17:48 UTC-3, Carlos Correia escreveu: > >

Re: [web2py] custom form web2py not work when i use selectpicker

2018-08-21 Thread Rodrigo Gomes
thanks, but the problem is not adding the selectpicker in the selects, the problem is that by adding it to any select it does not recognize the input data terça-feira, 21 de Agosto de 2018 às 14:17:48 UTC-3, Carlos Correia escreveu: > > Às 00:39 de 17-08-2018, Rodrigo Gomes escreveu: > > > Good

Re: [web2py] custom form web2py not work when i use selectpicker

2018-08-21 Thread Carlos Correia
Às 00:39 de 17-08-2018, Rodrigo Gomes escreveu: > > Good evening, folks, I've come here to unveil a mystery, I'm developing an > application with web2py, (framework that I use about 3 years ago) > > I am using sqlform.factory, passing 2 tables, being that I do this to fill in > a single form, table

[web2py] custom form web2py not work when i use selectpicker

2018-08-16 Thread Rodrigo Gomes
Good evening, folks, I've come here to unveil a mystery, I'm developing an application with web2py, (framework that I use about 3 years ago) I am using sqlform.factory, passing 2 tables, being that I do this to fill in a single form, table, person and address, for better understanding follows

[web2py] Custom form with select boxes set selected from a variable in a loop

2018-06-06 Thread Ischa Guns
Hello, I am trying to make a custom form with select boxes. I am using the SELECT helper to create the select boxes. I have a problem with setting the selected value. I have created the following example. def test_select(): users = [('0', 'None'), ('1', 'John'),

[web2py] Custom Form for Uploading Multiple files - not able to store files

2018-05-30 Thread rohittalwar26
Dear all I have been trying to work with custom forms as my form tries to feed in data into a table that references some data from another table. Also, I would like to upload a variable number of files to the database through the same form. But the uploaded/selected file is not being referenced

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
> > Before you do that, can we see exactly what is the request.vars['id'] > object? Based on the exception you are getting, it seems it is a list, in > which case, there is a problem with your code, not with SQLFORM. > Note, in particular, if you have an "id" variable in the URL query string a

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 1:11:22 PM UTC-5, Leonel Câmara wrote: > > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://github.com/web2py/web2py/blob/master/gluo

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 4:26:59 PM UTC-5, F.C. wrote: > > Thank you so much for your help! > > I will go and raise it > Before you do that, can we see exactly what is the request.vars['id'] object? Based on the exception you are getting, it seems it is a list, in which case, there is a

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Francois Barnard
Thank you so much for your help! I will go and raise it On Thu, Feb 8, 2018 at 12:11 PM, Leonel Câmara wrote: > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://gi

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Leonel Câmara
This is a bug, please submit an issue in github. The problem is that your request.vars.id is not and instance of (int, long, str, unicodeT) The bug is in this line: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1369 To workaround is to get the record yourself. form = SQLFORM(db

[web2py] web2py custom form 'TypeError'

2018-02-07 Thread F.C.
I have created a custom web2py form to allow the user to edit a current record. However when the user submit the record update I receive the following error message: list indices must be integers or slices, not str What am I missing? Here is an excerpt from the appliance I am building Model

[web2py] custom form submit not working - form.accepts not triggered

2017-11-07 Thread Yebach
Hello I am trying to implement a custom form for SQLFORM.grid When submit is clicked the data is not inserted. I think the problem is when I validate form and the form.accepts is not triggered. this is my controler def workers(): #some code before but not relevant grid_workers = SQLFORM.grid(

[web2py] Custom form errors?

2017-03-06 Thread LoveWeb2py
Hello, I have some custom login forms and I'm something like this: {{=form.custom.begin}}Image name: {{=form.custom.widget.name}}Image file: {{=form.custom.widget.file}}Click here to upload: {{=form.custom.submit}}{{=form.custom.end}} How can I check for errors here? I'm lost at where form g

[web2py] custom form default value

2016-12-20 Thread Tom Schuerlein
Hi: I am trying to write a fairly simple custom update form as shown below. The application is used in a lab to track "jobs" which consist of many samples each. The sample names are often more than one word. I am writing a page to edit the existing data base entry. However, when I set the

Re: [web2py] custom form no submiting

2016-03-06 Thread prashant joshi
Than u Fabiano Almeida its run On Sun, Mar 6, 2016 at 10:39 PM, prashant joshi wrote: > thank u > > > On Fri, Mar 4, 2016 at 1:55 AM, Fabiano Almeida > wrote: > >> *view:* >> >> {{extend 'layout.html'}} >> {{=form.custom.begin}} >> >> >> >> {{=db.stud_per

Re: [web2py] custom form no submiting

2016-03-06 Thread prashant joshi
thank u On Fri, Mar 4, 2016 at 1:55 AM, Fabiano Almeida wrote: > *view:* > > {{extend 'layout.html'}} > {{=form.custom.begin}} > > > > {{=db.stud_person.first_name > .label}} > {{=form.custom.widget.first_name}} > >

Re: [web2py] custom form no submiting

2016-03-03 Thread Fabiano Almeida
*view:* {{extend 'layout.html'}} {{=form.custom.begin}} {{=db.stud_person.first_name .label}} {{=form.custom.widget.first_name}} {{=db.stud_person.middle_name .label}} {{=form.cus

[web2py] custom form no submiting

2016-03-03 Thread prashant joshi
def register(): form=SQLFORM(db.stud_person) print form.errors if form.process().accepted: response.flash='Bitte warten' elif form.errors: response.flash='Bitte fuellen sie das Formular richtig aus' return dict(form=form) view:- {{=form.custom.begin}}

[web2py] Custom Form Widget Question

2014-05-03 Thread Mark Billion
How can I set the width of the dropdown menu for an input? The thing is way too long because its trying to be longer than the textsorry, I know its dumb, but I cant find anything -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Custom form with jquery acts weird

2013-09-17 Thread Jordan Ladora
Hi, I have the same problem as https://groups.google.com/forum/?fromgroups#!searchin/web2py/custom$20form$20jquery/web2py/7Meea7Ul0o8/4ZdrD9hP5MEJ https://groups.google.com/forum/?fromgroups#!searchin/web2py/custom$20form$20jquery/web2py/E9RyEqh01RQ/6duW4RmALvcJ >From the first thread/link abov

Re: [web2py] Custom form updating field not in view

2013-09-09 Thread Johann Spies
On 6 September 2013 20:23, SimonD wrote: > > I have a complex table, where I want to expose just some of the fields in > a custom form, and am using SQLFORM with a custom form. > I would not use SQLFORM in this case but SQLFORM.factory. In that way you can handle the updates explicitly and not

[web2py] Custom form updating field not in view

2013-09-06 Thread SimonD
Hi, I have been working with an issue for a few hours, and can see what is happening, but I would like to better understand why this happens. Although I have a solution, some information or help as to why this is happening would be very useful. I would be sure that the answer is simple and proba

[web2py] Custom form does not show the extra field of a SQLFORM

2013-02-13 Thread Tito Garrido
Hi Folks, I am trying to add a hidden field on a SQLFORM like this: *form=SQLFORM(db.produto) tags = TR(INPUT(_name='tags_hidden',value=True,_type='hidden')) form[0].insert(-1,tags)* {{=form.custom.widget}} it does not show this extra field: , 'preco_custo': , 'tipo': , 'tags': , 'pre

[web2py] Custom form won't submit.

2013-02-07 Thread Andrew Buchan
Hello, I'm using a form.custom, but clicking on submit doesn't trigger validation or submission. The page just refreshes. The code below always results in 'dont know' at the response.flash... Controller: ... fields = [..] request_details_form = SQLFORM(db.capacity_request,

[web2py] custom form validation doesn't work

2012-12-15 Thread jonas
Hi. I have a default form that is passed in view: {{=form}} using this validation and insertion works. but when I use a custom form none of that works. why? Also form.process().accepted works only when using default form. My second question is: when submitting the form I redirect to index, and

[web2py] custom form validation

2012-12-14 Thread jonas
Hi I have a custom comment form: def comment(): """ create comment form. Every comment is id locked to the specific post """ #crud.settings.create_next = URL('index') post=db(db.blog.id==request.args(0)).select().first() db.comments.post_id.default=post.id form=crud.create(

Re: [web2py] Custom form with default values...

2012-05-16 Thread Johann Spies
On 16 May 2012 09:43, Jason Brower wrote: > > If I print the form with {{=bio_form}} it works just fine, but I see all > the extra data fields. > Is there a way to fix this? > Yes. 'bio_form' contains the whole form with all the fields including hidden ones.. In your view you chose to show on

[web2py] Custom form with default values...

2012-05-16 Thread Jason Brower
Many values I don't need to show in the view so I have done this: def join(): ''' NOTES:Covers the event bio and any payments if needed. ''' event_details = db.event[request.args(0)] if not event_details: redirect(URL('default', 'index')) attender_count = db(db.even

[web2py] Custom Form Action empty

2011-10-15 Thread miroslavgojic
in controller I have next line for form form = crud.create(db.name,next=URL('index'),message=T("some text")) in view I have {{=form.custom.begin}} {{=DIV(DIV('Name:', _id='two'),DIV(form.custom.widget.fieldname,_id='three'),DIV(form.custom.submit,_id='for'),_id='one')}} {{=form.cust

[web2py] custom form trouble

2011-08-16 Thread Bruno de Oliva Bemfica
Hi, I'm trying to make a customized login form and when I click the submit button, the screen just blink, but no response. I'm using cas auth. -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfic

[web2py] custom form dspval question

2011-06-09 Thread wdtatenh
Apologies didn't see this anywhere that showed a clear example of what I'm asking about. Have custom form - using inpval, dspval, etc. and would like to know if there is specific formatting that allows me to set form field properties? this part I get: {{=dspval.my_field_name}} My question is us

[web2py] custom form with validation

2011-06-06 Thread David J.
I am trying to figure out how I can do validation on a custom form I have an order form; I need to set credit card expiration date as MM I have 2 fields 'expire_month' and 'expire_year' In my layout I manually added 2 select boxes; Jan ... 2011 ... I need some idea how to validate

[web2py] Custom form delete Crud checkbox

2011-02-22 Thread greenpoise
I dont know where my posts are going...anyways, I have a Crud custom form. Its set but I am also customizing the layout of the crud update form and I cant seem to get the delete checkbox...how would I go for that?? {{=form.custom.widget.? tried: {{=form.custom.widget.delete/checkbox/delete_r

Re: [web2py] custom form without using database?

2011-02-10 Thread David J.
Side Question; How can you add validators this way? On 2/10/11 7:37 AM, Bruno Rocha wrote: >>> form = FORM() >>> form.element().append(LABEL(_for='name',_value='Name')) >>> form.element().append(INPUT(_type='text',_name='name')) >>> print form for="name" value="Name"> --- Bruno Rocha http://

Re: [web2py] custom form without using database?

2011-02-10 Thread Panupat Chongstitwattana
What I meant was breaking the form down to pieces and put them at the appropriate places. Like, 'Name :' comes here INPUT _name comes here 'Password :' INPUT _password etc. On Thu, Feb 10, 2011 at 7:37 PM, Bruno Rocha wrote: form = FORM() form.element().append(LABEL(_for='nam

Re: [web2py] custom form without using database?

2011-02-10 Thread Bruno Rocha
>>> form = FORM() >>> form.element().append(LABEL(_for='name',_value='Name')) >>> form.element().append(INPUT(_type='text',_name='name')) >>> print form --- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] custom form without using database?

2011-02-10 Thread Panupat
I'm trying to put different input fields into different html elements. In the book only mentioned how to use custom form with pre-defined database. db.define_table('image', Field('name'), Field('file', 'upload')) {{=form.custom.begin}} {{=form.custom.widget.name}} If I am creating my

[web2py] Custom form bug

2011-01-30 Thread ionel
Hello, With custom form I can do this "form.table.field_name.length" and I get the field length defined in model file, ex. Field('field_name', 'text', length=200) But for length > 255, ex. Field('field_name', 'text', length=600), I get always 255 in form.table.field_name.length I use MySQL and I

[web2py] Custom Form

2010-06-16 Thread Pai
Is it possible to do checkbox with constraints?? For example, consider following db.define_table('children', Field('name'), Field('sex')) db.children.insert('Tom', 'M') db.children.insert('Jerry', 'M') db.children.insert('Eve', 'F') db.children.insert('Mary', 'F') is it possible to create FORM

[web2py] Custom form renderings and attributes

2010-05-03 Thread howesc
Hello, Is it intentional that when using SQLFORM, and custom views (with form.custom.begin), that if i modify attributes after initial form construction I have to update form.custom.begin myself? here's my example: form = SQLFORM(db.artwork, request.args[0], fields=fields, u

[web2py] Custom form doesn't submit

2010-01-25 Thread Adi
Hi all, I'm trying to build a custom form in this fashion: There's a parent table and a child table (many one relationship). I've created a read-only SQLFORM for a record of the parent, and then I'm trying this: form1 = SQLFORM(db.parent, readonly=True) form2 = SQLFORM(db.child, keepopts=['gend