to clarify, how you're meant to do it is like <input type=text name=whatever> <input type=hidden name=whatever_required value="you've got to enter a value for whatever!">
then the server-side checks if the field whatever has actually got a value, or whatever other kind of validation you've opted for, in the hidden fields with the same name and the validation type appended to that name. Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- [EMAIL PROTECTED] sign.co.uk To: <[EMAIL PROTECTED]> cc: 01/04/2003 11:55 Subject: Re: [ cf-dev ] form input names acting wierdly in MX Please respond to dev this is built into CF since about version 4.0. Check Forta blue book for details. basically on form fields, if the name is: x_date x_eurodate x_float x_integer x_range x_required x_time then it gets server-side validated. whether it's cfform or form shouldn't make any difference, as that just affects if there is client-side validation embedded in the case of the cfform. Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- Rich Wild <[EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> go.com> cc: Subject: [ cf-dev ] form input names acting wierdly in MX 01/04/2003 11:42 Please respond to dev Hmm, strange one this. I'm building a form builder app. When the form is output and filled in and submitted, if any form item is called anything ending in '_required' then CFMX seems to perform some sort of server side validation on it and returns an error message saying that the field wasn't completed - even when it is!!!! I'm not using cfform - just <form> You can test it by creating a template called test.cfm and inserting the following: <cfif isDefined("form.testvalue")> <cfdump var="#form#"> </cfif> <form name="testform" method="post" action="test.cfm"> <input type="hidden" name="testvalue" value="1"> <input type="hidden" name="date_required" value="uiyuiyuiyiyuiy"> <input type="submit"> </form> Oddness, and very much unwelcome. ------------------------------------------------------- Rich Wild Senior Web Developer ------------------------------------------------------- e-mango Tel: 01202 755 300 Gild House Fax: 01202 755 301 74 Norwich Avenue West Bournemouth Mailto:[EMAIL PROTECTED] BH2 6AW, UK http://www.e-mango.com ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of e-mango.com ltd, unless otherwise explicitly and independently indicated by an authorised representative of e-mango.com ltd. ------------------------------------------------------- -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
