Software, your way.
How To Get Good Custom Software
(Download)
(PDF)
burger menu icon
WillMaster

WebSite's Secret > Spotlight Articles > Behind the Scenes Tools > Generator/Online Service

Form Field "Word/Character Limits"

Sometimes it is necessary to limit the amount of text that may be typed into a form field, either a type="text" or textarea form field.

HTML can be used to limit the number of characters for a type="text" field. But that's all. It can't be used to limit characters for a textarea field and it can not be used to limit words in either type of field.

However, JavaScript can be used.

The Form Field Word/Character Limits Code Generator will create the code to make type="text" or textarea form fields that limit number of words, number of characters, or both.

In addition, the following information may also be available for the form user:

  • Number of words typed.

  • Number of words remaining to reach the limit.

  • Number of characters typed.

  • Number of characters remaining to reach the limit.

Any combination or all of the above may be specified at the generation form for either a type="text" or textarea form field.

The Form Field Word/Character Limits Code Generator in the members area can be used to generate code to limit the number of words and/or to limit the number of characters.

Or you may wish to download the package and install the generator on your own server. The generator is a PHP page. Therefore, if you decide to rename the file, keep the .php file name extension.

Read more at this feature's description page.

Download the latest WSS Catalog here.

 Facebook    Twitter

WebSite's Secret

Purchase Your
Permanent WebSite's Secret Membership Here

Log In to Members Area

Spotlight Article Index

WSS License Agreement

FAQ

Download the WSS Catalog for fast access to individual items in the members area.

Three Major Benefits
for Site Developers

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC