Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TheScarecrow #1
Character Field
I have a form and I want to make sure that the zipcode box has 5 characters in
it and if doesnt it props the user to reenter their zipcode. Can I check the
number of characters in the form field box.?? like character_length? Does
anyone have any ideas? Thanks.
<CFFORM name="countysearch" action="index.cfm?begin_key=1" method="post">
<table width="100%" border="0">
<tr>
<td width="48%" class="style8">Select your County</td>
<td width="52%" class="style8">Or Seach by Zipcode:</td>
</tr>
<tr>
<td><select name="county">
<option value=" " selected="selected"></option>
<cfoutput query="getcounty">
<option value="#county#">#county#</option>
</cfoutput>
</select></td>
<td><cfinput type="Text" name="zipcode" required="No" size="10"
maxlength="5" validate="zipcode"></td>
</tr>
</table>
</CFFORM>
TheScarecrow Guest
-
Extract Character By Character in PDF
Hi I have requirement to read the content of the PDF file. I achieved it using Adobe SDK and VB.NET. I used the GetJsObject, getPageNthWord and... -
Can't get ? character loaded in dynamic text field
I need the use of the chars ? and ® but only the latter appears. I'm using a loadVars object and an external .txt file which is loading with... -
InDesign ME Character Problem! Character-Change by Printing or saving *.PS!
Hi everybody! I have some problems with ME Version. When i want to print a page with FARSI-Text in it, he changes one character! on screen he... -
Problem with character palette and Tracking field: can't type zero after type is modified
System: Illustrator CS, Panther 10.3.3 Try this: Create a few characters of type. Select some letters and change their tracking (Option + Command... -
CDO character limitation in Body field ?
Oops - actually the limit for the Body field is 1866 characters. Pete -
zoeski80 #2
Re: Character Field
Hi Scarecrow
You could change the validate parameter to use validate="regular_expression"
and then have a Regular Expression that will check that the zip code is either
empty or has 5 characters.
<cfinput type="Text" name="zipcode" size="10" maxlength="5"
VALIDATE="REGULAR_EXPRESSION" PATTERN="">
HTH
Zoe
zoeski80 Guest



Reply With Quote

