Ah - slide 72? Where would that be?
> Errormessages normally are inform.errors and they get displayed
> below the corresponding widgets but you can do the following in views
> for example:
>
> {{(errors,form.errors)=(form.errors,dict())}}
>
> so that errors are not displayed under widgets any more but stored in
> a new "errors" dictionary. And you can display them as a you like:
>
> {{if 'name' in errors:}}Oops, there is no name here{{pass}}
>
> On Jun 28, 2:39 am, "
jjahe...@googlemail.com"
>
> <
jjahe...@googlemail.com> wrote:
> > I have been playing around with web2py to see what I can do or not do.
>
> > I must say I like what I see. It seems very intuitive and easy to work
> > with.
>
> > I am using windows XP SP3, python 2.5.4, web2py 1.64.4
>
> > It would seem that the default format for forms is to output them as
> > tables.
>
> > So I have looked at usingCustomForms but continuing to use the
> > validation system. I have picked up examples from various messages and
> > modified them to see what I can do.
>
> > Thecustomforms work with the simple layout I have been using for my
> > tests. But the one thing I have become stuck on at the moment is how I
> > can change the position oferrormessages.
>
> > I have included the code I have been using. You can see how I have
> > played around with using my ownformviews and addingformelements
> > and widgets myself to see what happens. If you submit theform, it is
> > validated and theerrormessages appear attached to eachformitem.
>
> > Ideally I would like to control where theerrormessages appear. But I
> > have become brain dead. I must be overlooking something obvious. So I
> > am checking to see if anyone can give me a pointer to what I can do.
>
> > One other point is that by default every element comes with a class
> > name attached. I could just update each element and set the class to
> > None to get rid of it. And if I need to I could then add my own class
> > names. But from the point of view of keeping theformtidy, would it
> > <title>LayoutFormwithout Tables</title>
> > <style type="text/css">
> > .formLayout
> > {
> > background-color: #f3f3f3;
> > border: solid 1px #a1a1a1;
> > padding: 10px;
> > width: 300px;
> > }
>
> > .formLayout label, .formLayout input
> > {
> > display: block;
> > width: 120px;
> > float: left;
> > margin-bottom: 10px;
> > }
>
> > .formLayout label
> > {
> > text-align: right;
> > padding-right: 20px;
> > }
>
> > br
> > {
> > clear: left;
> > }
> > </style>
> > </head>
> > <body>
>
> > <formaction="" enctype="multipart/form-data" method="post">
> > <div class="formLayout">
> > <h2>ContactForm</h2><br>