CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to detect which input fields encountered an error after submitting a form (CodeCharge 4)

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.