Skip to main content
Inspiring
December 3, 2018
Answered

Programmatically set field to numeric format

  • December 3, 2018
  • 1 reply
  • 848 views

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.

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
December 3, 2018
ODuinnAuthor
Inspiring
December 4, 2018

Awesome. Thank you.