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

  • Profile Image
    Asked 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
    Answered 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 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
    Answered on May 18, 2010 at 01:50 AM
    Yes, it looks like there are many solutions for that:
  • Profile Image
    Answered 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 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 #######