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

Programmatically set field to numeric format

Explorer ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

I can change an Acrobat text field FROM the Acrobat 'Number' format TO the 'None' format with this script:

     var f = this.getField("num.SDebit.22");

       f.setAction('Format', "");

       f.setAction('Keystroke', "");

I would like to do the opposite: i.e. programmatically set an Acrobat text field format TO the number format and specify the number options available in the Format dialog box of text field properties .

Can this be done, and if so, how.

TOPICS
Acrobat SDK and JavaScript

Views

175

Likes

Translate

Translate

Report

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 , Dec 03, 2018 Dec 03, 2018

Likes

Translate

Translate
Community Expert ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

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
Explorer ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

LATEST

Awesome. Thank you.

Likes

Translate

Translate

Report

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