Yes it makes sense, the cfinput tag also comes with validation. I am not sure of the syntax but you can leave the value="" and check to see if the validation passes before it is sent to the server.
I think off the top of my head it is something along the lines of required="true" message="This field can't be left empty" As I stated I have never used it, and that this is a guess of the top of my head. And welcome to CFAussie Travis. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of TJS Sent: Friday, 6 July 2007 5:21 PM To: cfaussie Subject: [cfaussie] Text box. Hi Everyone, I am new to CFAussie. I greatly appreciate anyone's response(s) to my question below. I have a results page that lists a series of products. Beside each product description, there is a CF text box that allows a user to specify a quantity value a person wants to order. At the moment, I have the following code:- <cfinput type="Text" name="QTY" value="0" size="3"> When the user SUBMITS the form, a hidden SKU value, and the corresponding QTY value is fed into an arrayList on the results page. What I would like to do is rather than show a value "0" in each text box, I would like to show a blank text box value. And when the user SUBMITS the form, if a value is not specified, "0" is automatically assumed and sent. The problem I have at the moment, is that without specifying 0 or a numeric value, the values being fed into an array on the receiving page generate an error saying an element cannot be found. I hope this makes sense. Thanks again to anyone that is able to answer what to do here. Cheers, Travis. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.0/886 - Release Date: 4/07/2007 1:40 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.0/886 - Release Date: 4/07/2007 1:40 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
