Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member VegaLA's Avatar
    Join Date
    May 2004
    Posts
    70
    Member #
    6035
    Hi all,
    I am trying to format a field so that it displays only a certain number of characters, so if the value in the field exceeds 20 than it will only display the first 20 characters. I checked the formatting feature in the bindings window and tried Trim but it has'nt shortened the value on the page I am displaying it on. I think i'm going about this the wrong way too because the trim, be it left or right, does'nt allow you to state how many characters you'd like to display so is there a way to display a certain number of characters of the value of a field ?

    Thanks in advance,
    Mitch.......

  2.  

  3. #2
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    There are javascript solutions for this.
    You can limit the number of allowed characters (and include a counter), and add an automatic jump to the next field when the limit is reached (as in a form that collects creditcard numbers etc) if you want to.

    A few links below.

    http://www.smartwebby.com/DHTML/text...rs_counter.asp
    http://www.shiningstar.net/articles/...nter.asp?ID=AW
    http://javascript.about.com/library/bltxtmax1.htm
    S. Rosland


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:19 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com