Hello,

> print dir(form) - to get variables/methods
> print dir(form.attributes) - dict of attributes (formname, id, etc.)
>

I might sound really silly. Where do i place the print command ? it
wont work in the controller or in the view.

and I am still not clear....
if I have a form, like this
    form = FORM("your name:",
                 INPUT(_name="yourname",requires=IS_NOT_EMPTY()),
                 INPUT(_type="submit"))



How can i place the elemets of the form in a customized way....
something like this
<table>
     <tr> <td> {{=form.label}} </td> </tr>
     <tr> <td> {{=form.input._name}} </td> </tr>
<tr><td><td></tr>
<tr><td><td></tr>
<tr><td><td></tr>

     <tr> <td> {{=form.submit}}</td> </tr>

Note... in the above example, I have chosen to place the submit button
after 3 rows... this way, i get to place my form, in my own way,
rather than web2py automatically placing them in a table or in its own
way.


thanks
Arvind
--~--~---------~--~----~------------~-------~--~----~
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