We use a custom script which loops through and tots up the errors and error
messages etc....then outputs them via a simple alert of what is wrong with
the field for multiple fields.



-----Original Message-----
From: Angel Stewart [mailto:[EMAIL PROTECTED]
Sent: 22 July 2003 16:09
To: CF-Talk
Subject: RE: CFForm madness. 0_0


Ok that's interesting, but then won't the user get back an error message
saying:
Please fill in TextInput1?

If the name of the form field is fname20...I don't necessarily want the
user to see :Please fill in fname20. 
I'd prefer them to see :Please provide a name.

How would you do that...for say 5 fields?

-Gel


-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 


To give you an idea how easy qForms is to implement, here's the entire
block of code needed to reproduce your example template:

<script language="JavaScript" src="/lib/qforms.js"></script> <script
language="JavaScript"> <!--// qFormAPI.setLibraryPath("/lib/");
qFormAPI.include("*");

// load this function during the body "onload" event
function init(){
        oForm = new qForm("myForm");
        // require the following fields
        
oForm.required("textInput1,textInput2,mySelectInput,sex,myTextarea");
        // make sure the textInput2 field contains at least 10
characters
        oForm.textInput2.validateLengthGT(9);
}
//-->
</script>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to