Time:
Scotland: Sat, 6:46 am
Rhode Island: Sat, 1:46 am
Florida: Sat, 1:46 am
New Mexico: Fri, 11:46 pm
California: Fri, 10:46 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

Selanac Embroidery and Screen Printing

Embroidery
Screen Printing
Signs and Banners
Promotional Advertising

WEBSITE

Contact Paul Canales
TEl: USA 732-901-8417
CELL: USA 732-773-1339


Please click here for more information


For continued disscussion on this topic : * validate a number?


christy_nf
03-26-2003, 05:59 PM
Hi there!

I'm trying to validate a phone number (in 3 separate textboxes) by using the _integer suffix of the hidden attribute. I've followed the help instructions exactly and I'm still getting an error! The _required attribute works fine, but as soon as I add the next line with the _integer attribute, I get an error. I've pasted some of my code below...

Anyone have any ideas? THANKS!!!

Christy
:-)

--------------------------------------------------------------------------
<input type="text" name="HomePhone1" required = "yes" maxlength="3" size="3">

<input type="hidden" name="HomePhone1_required" VALUE="Please provide a complete home phone number">

<input type="hidden" name="HomePhone1_integer" VALUE="Please provide a valid home phone number">
-----------------------------------------------------------------------------

jonsteele
03-31-2003, 07:18 AM
Don't have too much experience with the built in form validation of CF, but how about something like this:

<input type="text" name="HomePhone1" required="yes" validate="integer" message="Please enter a valid phone number" maxlength="3" size="3">