/ Id-Extras Forum / Field character limits / Reply To: Field character limits

#6371
~~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