Answered
I have a very useful script that I can insert into Advanced - Document Processing - Set Document Actions - Document Will Print, which is:
this.getField("PrintDate").value = "Printed on " + util.printd("dd-mmm-yyyy, hh:M tt",new Date());
How can I achieve the same effect on a form designed in LiveCycle Designer where, of course, I do not apparently have access to the same activity.
I assume it has something to do with the "prePrint" event, but I haven't a clue how I can achieve the same (or a similar) result.
What do I put, where within the form, and how do I get there?
Thanks
David
To do it just place a textfield there you want current date to be inserted and then add a Javascript script for the prePrint event of this textfield:
this.rawValue="Printed on "+util.printd("dd-mmm-yyyy, hh:M tt",new Date());
As you see it's similar to the script you've used.
Hope that helps!
Regards, Andrey.