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

Date Autoppopulate

New Here ,
Dec 01, 2016 Dec 01, 2016

Can someone help me to write script

I have a form field that I want to auto populate with System date+30 days to it.

TOPICS
Acrobat SDK and JavaScript , Windows
397
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
Community Expert ,
Dec 01, 2016 Dec 01, 2016

Put this in the custom calculation script

var oneDayInMilliseconds = 24 * 60 * 60 * 1000;

var now = new Date();

event.value = util.printd("mmmm dd, yyyy", new Date(now.getTime()+(oneDayInMilliseconds*30)));

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
LEGEND ,
Dec 01, 2016 Dec 01, 2016
LATEST

When exactly do you want your field to be updated?

When the PDF is opened?

Saved?

Closed?

When another field is filled-in or updated?

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