isparks
Posts: 3
|
| Posted: 01/09/2009, 12:05 PM |
|
First a little background: I noticed in CodeCharge 4 that generated record forms now add a label for tag around each field title, like this:
<label for="[controlNameRecordName]">controlName</label>
I haven't been able to find the intended use for this new feature anywhere. However, I figured out that if I can determine (in the BeforeShow) what fields encountered an error during the previous submit attempt, then I can dynamically generate some CSS to highlight fields that have an error.
Does anyone know of a way to get the list of fields that encountered an error?
Thanks!
_________________
Jeremy
http://SpamHero.com
|
 |
 |
maxhugen
Posts: 272
|
| Posted: 01/11/2009, 4:39 PM |
|
The purpose of a <label> in html is so that if you click on it, the focus is placed in the associated control.
I like your idea of highlighting fields with errors, but unfortunately I don't know how to get the list of fields with errors either. Maybe someone else can shed some light here....
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
|