Print Page | Close Window

Dynamic date on page spawn

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=4013
Printed Date: 10 Dec 2018 at 9:58pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Dynamic date on page spawn
Posted By: smfrippon
Subject: Dynamic date on page spawn
Date Posted: 05 Sep 2018 at 5:19pm
Hi,

I'm trying to set a date field on page templates that takes the current date and applies it as a kind of time stamp when the template is spawned, to show when that page was generated.

Any ideas?

Thanks in advance

Sam



Replies:
Posted By: gkaiseril
Date Posted: 06 Sep 2018 at 9:14pm
I would add a custom calculation script to the field for the spawned date that tests the "default" value of the field and if it is blank then set the "value" and "defaultValue" to the current date and time.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net