Copy link to clipboard
Copied
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.
Sure. The code is:
this.getField("Textbox1").value = "Hello World";
this.getField("Textbox2").value = util.printd("mm/dd/yyyy", new Date());
Copy link to clipboard
Copied
Sure. The code is:
this.getField("Textbox1").value = "Hello World";
this.getField("Textbox2").value = util.printd("mm/dd/yyyy", new Date());
Find more inspiration, events, and resources on the new Adobe Community
Explore Now