Skip to main content
October 10, 2016
Answered

Form Help

  • October 10, 2016
  • 1 reply
  • 442 views

How do I get adobe pro XI to insert a date in a field once a checkbox is checked?

This topic has been closed for replies.
Correct answer George_Johnson

What date would you like to be inserted?

1 reply

George_JohnsonCorrect answer
Inspiring
October 10, 2016

What date would you like to be inserted?

October 10, 2016

The current days date.

try67
Community Expert
Community Expert
October 10, 2016

Use this code as the text field's custom calculation script:

event.value = (this.getField("CheckBox1").value=="Off") ? "" : util.printd("mm/dd/yyyy", new Date());

You should change the name of the check box field to match the one in your file, and can also change the date format to something else, if you wish.