See the Forms and Validators section of the book. You have total
flexibility if you want to go to the trouble of building your own
form. Check out the Custom Forms section of that chapter.
On Feb 10, 12:45 pm, Panupat Chongstitwattana panup...@gmail.com
wrote:
What I meant was breaking the
Villas - I have read the book. The form.custom only works with SQLFORM
and crud. I cannot use that same method with FORM.
Looks like there are some other properties of the form I can output in
the view... so far I found
{{=form.formname}} - which just give me the word default
{{=form[0]}} 1 2 3
I almost always use forms in this following way:
*#Create a DIV to WRAP it all*
div = DIV(FORM())
print div
divform action= enctype=multipart/form-data
method=post/form/div
*#Take the elements of the wrapper using DOM*
print
Thanks Bruno. That looks very promising I'm trying it out now :)
I got mine working too but it's very amature dir to find what's
there and add bits and pieces of them into the view. /sigh.
On Feb 10, 8:22 pm, Bruno Rocha rochacbr...@gmail.com wrote:
I almost always use forms in this
Anyone know what properties I can call to get the hidden fields?
Using SQLFORM you have form.hidden_fields()
but using FORM you need to use Server side DOM and Parsing
#
*# Create a form with hidden elements*
form =
What about widgets? IS_IN_DB() for example. Is there a way to get
those working with a regular FORM without using SQLFORM?
On Feb 10, 8:22 am, Bruno Rocha rochacbr...@gmail.com wrote:
I almost always use forms in this following way:
*#Create a
Thanks Bruno the DIV(FORM()) trick is really nice.
Too bad there's no dd, dt, dl which is what I usually use for form
layouts. I guess I can always manually append them in.
On Thu, Feb 10, 2011 at 8:32 PM, Bruno Rocha rochacbr...@gmail.com wrote:
Anyone know what properties I can call to get
You can use TAG.dd() , TAG.dl()
here is a working MVC example for a customized contact form, which sends an
email
http://pastebin.com/jTbGQNZk
--
Bruno Rocha
http://about.me/rochacbruno/bio
How do I add css class,id or java onClick etc to the tags?
On Feb 10, 8:44 pm, Bruno Rocha rochacbr...@gmail.com wrote:
You can use TAG.dd() , TAG.dl()
here is a working MVC example for a customized contact form, which sends an
email
http://pastebin.com/jTbGQNZk
--
Bruno
On Feb 10, 1:16 pm, Panupat panup...@gmail.com wrote:
Villas - I have read the book. The form.custom only works with SQLFORM
and crud. I cannot use that same method with FORM.
Hi Panupat,
I reread your original post again and I notice that your initial
comment was: In the book only mentioned
Hi Villas
I'm sorry, I see what you meant now. I wasn't aware of the factory
feature before
:)
On Thu, Feb 10, 2011 at 11:52 PM, villas villa...@gmail.com wrote:
On Feb 10, 1:16 pm, Panupat panup...@gmail.com wrote:
Villas - I have read the book. The form.custom only works with SQLFORM
and
Hi Panupat,
No problem, web2py has so many useful features they are sometimes
overlooked - especially by me!
Anyhow I hope it will at least reduce some of the complexity for
you :)
-D
On Feb 10, 5:11 pm, Panupat Chongstitwattana panup...@gmail.com
wrote:
Hi Villas
I'm sorry, I see what you
Why do you use all the underscores? Is it because those variables are
reserved words? Does it make the variables private or something?
I use __ because I like to return locals() instead of a dict()
Em 10/02/2011, às 18:53, pbreit pbreitenb...@gmail.com escreveu:
Why do you use all the underscores? Is it because those variables are
reserved words? Does it make the variables private or something?
14 matches
Mail list logo