Is it possible to add an active JavaScript function
to a form field created with / thru a batch sequence?
So that each time the document opens the Current date
is displayed?
(If possible, can someone please help me with the code
to add to the current code below?)
Because now when the Batch Sequence runs over the
selected files it only displays the Date of when
the Sequence was done. (Now it only creates a flat
text “body” field)
Here is a sample of the Script I’m running now;
var thisfieldis = this.addField("mydate", "text", 0, [20, 60, 200, 20]);
var newdate = new Date();
var expdate = new Date() ;
with (expdate) setDate(getDate()+7);
var theprint = "Print date";
var theday = util.printd("dddd",newdate);
var thedate = util.printd("d",newdate);
var themonth = util.printd("mmmm",newdate);
var theyear = util.printd("yyyy",newdate);
var theexp = " Expiration date";
var thexday = util.printd("dddd",expdate);
var thexdate = util.printd("d",expdate);
var thexmonth = util.printd("mmmm",expdate);
var thexyear = util.printd("yyyy",expdate);
thisfieldis.value = theprint + " " + theday
+ " " + thedate + ", " + themonth + " " + theyear
+ theexp + " " + thexday + " " + thexdate + ", "
+ thexmonth + " " + thexyear;
Thanks for helping!
to a form field created with / thru a batch sequence?
So that each time the document opens the Current date
is displayed?
(If possible, can someone please help me with the code
to add to the current code below?)
Because now when the Batch Sequence runs over the
selected files it only displays the Date of when
the Sequence was done. (Now it only creates a flat
text “body” field)
Here is a sample of the Script I’m running now;
var thisfieldis = this.addField("mydate", "text", 0, [20, 60, 200, 20]);
var newdate = new Date();
var expdate = new Date() ;
with (expdate) setDate(getDate()+7);
var theprint = "Print date";
var theday = util.printd("dddd",newdate);
var thedate = util.printd("d",newdate);
var themonth = util.printd("mmmm",newdate);
var theyear = util.printd("yyyy",newdate);
var theexp = " Expiration date";
var thexday = util.printd("dddd",expdate);
var thexdate = util.printd("d",expdate);
var thexmonth = util.printd("mmmm",expdate);
var thexyear = util.printd("yyyy",expdate);
thisfieldis.value = theprint + " " + theday
+ " " + thedate + ", " + themonth + " " + theyear
+ theexp + " " + thexday + " " + thexdate + ", "
+ thexmonth + " " + thexyear;
Thanks for helping!