View Single Post
  #15  
Old 01-14-2008, 03:29 PM
 
Chill-Tek Chill-Tek is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 42
 

Default Re: Force Capital letters in Postal Code Field

Quote:
Originally Posted by shan
Here you go,

clever little trick that. I did this for V3.5.3 but youll see the idea of how it works for any other version.

This is the code for the zip code part of the registration form

Code:
<tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onKeyUp="this.value=this.value.toUpperCase()" onChange="check_zip_code()" > {if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr>


I just added the onKeyUp="this.value=this.value.toUpperCase()" to the input field string because the code on 4.1.9 is slightly different. Just letting y'all know. Great little mod.
Reply With Quote