Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

unselect limit number of characters & comb of characters or both

Participant ,
Oct 10, 2016 Oct 10, 2016

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..

TOPICS
Acrobat SDK and JavaScript , Windows
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 10, 2016 Oct 10, 2016

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 )

Translate
Community Expert ,
Oct 10, 2016 Oct 10, 2016

Yes, it's possible to do that with a script. Just set the field's charLimit property to 0 to achieve it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2016 Oct 10, 2016

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 )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 10, 2016 Oct 10, 2016
LATEST

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines