What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Limit character count in text field (again...)Asked by KatPM on May 16, 2010 at 07:07 PMI saw the previous post on this question and aytekins answer:input maxlength custom form form maxlength"Copy full form source code to your web site and add maxlength to your form. Here is a description for maxlength:
You can get the full form source code by clicking on "Share" on form builder and then click on "Advanced Options".But I was wondering exactly where I would put the source code maxlength="1020" in the HTML coding. I have tried just about everywhere and haven't been able to get it to work.Any help would be greatly appreciated.
JotForm FounderYou should put it on the <input or <textarea field that you would like to limit. The link I posted there have some examples.
Hi aytekin, after much frustration and research I found out that it isn't really possible to have a character limit in a text'area' without getting into Perl and that stuff (wayyyyy over my head)!So.... is there a way to have a character counter for the text area so people know how many characters they've typed?Thanks for any help, it's really appreciated.
JotForm FounderYes, it looks like there are many solutions for that:
We have just released this feature. You can now limit textarea questions by words or characters.
I also would like to add this to my form! :)
How do we add this code to apply to our JotForm field?
Able to help us?
##### BEGIN ######
var text_max = 99;
$('#textarea_feedback').html(text_max + ' characters remaining');
var text_length = $('#textarea').val().length;
var text_remaining = text_max - text_length;
$('#textarea_feedback').html(text_remaining + ' characters remaining');
###### END #######