Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
webconstructor-Gary webforumsuser@macromedia.com #1
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
-
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... -
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... -
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... -
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... -
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... -
Dwayne Epps #2
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...enter into a text form?> Does anyone know how to limit the number of characters a customer can>
>
Dwayne Epps Guest
-
webconstructor-Gary webforumsuser@macromedia.com #3
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
-
webconstructor-Gary webforumsuser@macromedia.com #4
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
-
lebisol webforumsuser@macromedia.com #5
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
-
Unregistered #6
Re: Maximum characters in 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



Reply With Quote


