Ok i've worked with

<tr><td>
<label>{{=db.student.code.label}}</label><br>
<input name="code" value="{{=form.latest.code}}" size=31 maxlength=30 />
{{if form.errors.code:}}{{=form.errors.code}}{{pass}}
</td></tr>

and that provides an error on code if someone tries to put a duplicate
code (needs to be unique).


If I just use {{include}} to build all the fields in a table and it is
an error there is a red "flash" error on the code field.

How do I duplicate the flash on an error, as with the {{if
form.errors.code:....}} is not obvious enough when an error happens.

I tried:

{{=form[0][4]}}

to get the whole component in and see if that works, but it does
provide any error feedback.

How is the red flash error done?

thx,

-wj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to