Maximum characters in form

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Maximum characters in form

    Does anyone know how to limit the number of characters a customer can enter into a text form?


    webconstructor-Gary webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Flash Form and ASP Chinese and Nordic Characters
      I'm having a problem with an application of mine in the inserting of Nordic and Asian characters. I'm using a flash application that sends data to...
    2. export Special characters from .swf to Lotus Notes Form
      In a Lotus Notes form, i have embedded a flash swf. Through this, users can submit applications, and I send the data to the Notes form with loadvar...
    3. HTML form fields and special characters
      How can I read the value of form fields with special characters such az comma, space, doller sign, star, slash,... in their name? When I dump...
    4. Maximum number of characters in a field?
      I won't give all the boring information, but here's the skinny of what I'm trying to find out. I have a dynamic text field and (for my own...
    5. Special Characters in a text box for a form
      I am creating a page the deals with users entering information into a form which is then loaded to a database. no big deal. however, this often...
  3. #2

    Default Re: Maximum characters in form

    Yes, this is an example code snippet:
    <input type="text" name="first_name" maxlength="30">
    Just enter the number of characters you want to use in the maxlength. Hope
    this helps.
    -D-


    "webconstructor-Gary" <webforumsuser@macromedia.com> wrote in message
    news:beunjn$r8s$1@forums.macromedia.com...
    > Does anyone know how to limit the number of characters a customer can
    enter into a text form?
    >
    >

    Dwayne Epps Guest

  4. #3

    Default Re: Maximum characters in form

    I must be missing something here. The only options I see are for Char Width, and Num Lines.

    The Character Width limits the number of characters per line, and the num lines limits the number of lines that are visible, but a customer can continue to type his entry, and scroll for full view. I want to prevent them from entering in more than a specific number of characters.

    Can you tell me where this entry is, I do not see it anywhere in properties, nor in behaviors.

    Thanks



    webconstructor-Gary webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Maximum characters in form

    Thanks Dwayne, This does work well for a single line box, unfortunately, I can not figure out what I am doing wrong to make it work in a multi-line box. My current code is as follows:

    <textarea name="Book-Set-Description-Tenth-Item" cols="40" id="Book-Set-Description-Tenth-Item"></textarea></td>

    Any ideas?





    webconstructor-Gary webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Maximum characters in form

    <textarea name="Book-Set-Description-Tenth-Item" cols="40" rows="5" id="Book-Set-Description-Tenth-Item"></textarea>




    lebisol webforumsuser@macromedia.com Guest

  7. #6

    Default Re: Maximum characters in form

    Quote Originally Posted by webconstructor-Gary webforumsuser@macromedia.com View Post
    Does anyone know how to limit the number of characters a customer can enter into a text form?
    Well if you are talking how to limit no. of charatcter in any field for any customer, you can use following javascript code in the "onKeyPress" event of that field(this code is for a a limit of 50 character)

    if(document.forms[0].innertext.length>=50)
    {
    event.returnValue= false;
    window.status="You can not enter more than 50 characters"
    }
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139