Copy link to clipboard
Copied
hi, i want to unselect "limit number of characters & comb of characters" in text fields. is that possible to do it using JavaScript??. what that JavaScript should do is, it should go true all the text fields & remove selected "limit number of characters or comb of characters" options. thanks..
Yes, you can do this via JavaScript. You can create e.g. an Action and then run this action on one or more documents and modify them. You need to loop over all fields, look for text fields and then modify the properties of these text fields.
Take a look at the properties of the Field object - specifically Field.comb (Acrobat DC SDK Documentation ) and Field.charLimit (Acrobat DC SDK Documentation )
Copy link to clipboard
Copied
Yes, it's possible to do that with a script. Just set the field's charLimit property to 0 to achieve it.
Copy link to clipboard
Copied
Yes, you can do this via JavaScript. You can create e.g. an Action and then run this action on one or more documents and modify them. You need to loop over all fields, look for text fields and then modify the properties of these text fields.
Take a look at the properties of the Field object - specifically Field.comb (Acrobat DC SDK Documentation ) and Field.charLimit (Acrobat DC SDK Documentation )
Copy link to clipboard
Copied
hi, thanks a lot for your TIP. i have created bellow code & it's work perfectly. thanks again..
for (var i = 0; i < numFields; i++) {
var f = getField(getNthFieldName(i));
f.comb = false;
f.charLimit = false;
Find more inspiration, events, and resources on the new Adobe Community
Explore Now