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.

  • Profile Image

    Limit character count in text field (again...)

    Asked by KatPM on May 16, 2010 at 07:07 PM
    I saw the previous post on this question and aytekins answer:

    "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.
  • Profile Image
    JotForm Founder

    Answered by aytekin on May 17, 2010 at 06:26 AM
    You should put it on the <input or <textarea field that you would like to limit. The link I posted there have some examples.
  • Profile Image

    Answered by KatPM on May 17, 2010 at 06:09 PM
    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.
  • Profile Image
    JotForm Founder

    Answered by aytekin on May 18, 2010 at 01:50 AM
    Yes, it looks like there are many solutions for that:
  • Profile Image
    JotForm Founder

    Answered by aytekin on December 30, 2010 at 02:31 AM

    We have just released this feature. You can now limit textarea questions by words or characters. 


  • Profile Image

    Answered by organiccomm on November 24, 2014 at 04:09 PM

    I also would like to add this to my form! :) 

    I followed your google search and found the Javascript code to show HOW MANY CHARACTERS REMAINING. 

    How do we add this code to apply to our JotForm field?

    Where do we have Javascript access? Note, I'm a beginner for JotForm, but certainly do understand if I had FTP access and access to the JS file and could replace! 

    Able to help us?

    ##### BEGIN ######

    $(document).ready(function() {

        var text_max = 99;

        $('#textarea_feedback').html(text_max + ' characters remaining');


        $('#textarea').keyup(function() {

            var text_length = $('#textarea').val().length;

            var text_remaining = text_max - text_length;


            $('#textarea_feedback').html(text_remaining + ' characters remaining');




    ###### END #######