Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Defaulting to current date for a text field

$
0
0
Acrobat Version 8.1.2
I would like to have my Adobe form take the current date default for a text field. Any idea how this can be done? I tried following on the Field Properties Calculate Tab "Custom Calculation script". Field name is TodayDate.

var TodayDate = this.getField("Today");
TodayDate.value = util.printd("mm/dd/yyyy", new date());

Anybody knows what am I doing wrong?

Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>