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
À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:
>
>
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
À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
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
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'),
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
>
> 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
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
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
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
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
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
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(
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
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
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
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}}
>
>
*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
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}}
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
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
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
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
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
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,
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
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(
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
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
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
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
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
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
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
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://
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
>>> 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
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
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
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
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
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
43 matches
Mail list logo