These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Placing date and time of printing on LiveCycle Designed Form

wdrspens
Registered: Jul 22 2008
Posts: 94
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

My Product Information:
LiveCycle Designer, Windows
aerokhin
Registered: Jun 27 2008
Posts: 39
Hi,

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.
wdrspens
Registered: Jul 22 2008
Posts: 94
Hi Andrey,
That is so helpful. It works perfectly just as I wanted, and, as you say, the code is very similar to the script I have used.
Thank you so very much. You are a star.
Regards,
David