/ Id-Extras Forum / Field character limits

  • Author
  • #6181 Reply
    mikek
    Participant

      Using FormMaker, is it possible to set character limits on fields like it is in the Options tab in Acrobat?

      #6371 Reply
      ~~Ariel~~
      Participant

        Hi Mike,
        Good question!
        For the time being, it’s not possible to do this using FormMaker’s UI, although I think this is one of the features I will be adding next.
        However, there’s a simple workaround, similar to what I just described here (http://id-extras.com/forum/viewtopic.php?id=49).
        Basically, add a simple document script to apply the character limits to whatever fields you like.
        For instance:

        Code:
        f = this.getField(“Text Field 1”);
        f.charLimit = 20;

        f = this.getField(“Text Field 2”);
        f.charLimit = 20;

        Just copy that little snippet into a new document script in FormMaker, and modify it (obviously) to match the names of the fields you’re using.
        And again, once the PDF form is ready for distribution, just delete this document script from the PDF.
        I describe a similar technique for setting combo-box values here: http://id-extras.com/forum/viewtopic.php?pid=114#p114

        Would that work?
        Ariel

      Viewing 2 posts - 1 through 2 (of 2 total)
      Reply To: Reply #6371 in Field character limits
      Your information: