PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

single line text max length

  1. How can I set the max length of a single line of text? I am looking maybe with some jquery, but I can't set a custom id on the field either

    Posted 14 years ago on Tuesday March 30, 2010 | Permalink
  2. Hopefully there is a better way to identify the input field but this is what I have in my custom programming plugin:

    var $j = jQuery.noConflict();
    $j(document).ready(function(){
      // max length for tag fields<br />
      $j("#input_1_9").attr({maxlength:4});
      $j("#input_1_20").attr({maxlength:4});
      $j("#input_1_22").attr({maxlength:4});
    });
    Posted 14 years ago on Tuesday March 30, 2010 | Permalink
  3. There isn't a way to set a maxlength right now but you can set a custom class per field and should just have to declare the attributes for the class once in the jQuery snippet

    Posted 14 years ago on Tuesday March 30, 2010 | Permalink