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

Auto-populate 2 text boxes after push of button

New Here ,
May 01, 2017 May 01, 2017

I would like to populate 2 text boxes after the push of a button. Basically, after the user clicks Button1, the text 'Hello World' would populate Textbox1 and Textbox2 would be populated with the current date (today's date).

Is this possible with Javascript on the button's action?

Thanks in advance.

TOPICS
Acrobat SDK and JavaScript
388
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 , May 01, 2017 May 01, 2017

Sure. The code is:

this.getField("Textbox1").value = "Hello World";

this.getField("Textbox2").value = util.printd("mm/dd/yyyy", new Date());

Translate
Community Expert ,
May 01, 2017 May 01, 2017
LATEST

Sure. The code is:

this.getField("Textbox1").value = "Hello World";

this.getField("Textbox2").value = util.printd("mm/dd/yyyy", new Date());

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