Steve, I'll admit that I don't use <cfinput> or <cfform> (I just use <input> and <form>), so I don't know a whole lot about the in-built validation. I think though, that you can use onValidate instead of validate. onValidate takes a JavaScript function that you could use to manipulate the string (dropping the dashes) before returning to the <cfinput> that the validation was successful.
In ColdFusion you could use the Replace function: <CFSet mySSN = Replace(ThisSSN, "-", "", "All")> In JavaScript, I like to use a library called LeftCorner.js. It reproduces several ColdFusion functions for use in JavaScript. It's very handy. If you want the file let me know off-list, as I've added a couple of functions and made several bug fixes to the author's original code. Anyway, using LeftCorner.js (using my modified version) you would do almost the same thing to dump the dashes var mySSN = CFJS.Replace(ThisSSN, "-", "", "All"); I hope that helps. Since I don't use <cfform> and <cfinput> I don't know how helpful that was. :o' Cheers, Chris Steve LaBadie wrote: > Chris, > > Is there a way to drop the dashes (-) when validating for SSN? The SSN > in the database don't have them. > > <cfinput type="text" name="ssn" maxlength="9" size="28" > validate="social_security_number" validateat="onsubmit" > class="formveld"> > > Steve LaBadie, Web Manager > East Stroudsburg University > 200 Prospect St. > East Stroudsburg, Pa 18301 > 570-422-3999 > [EMAIL PROTECTED] > http://www.esu.edu > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269189 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

