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.
Printed Date: 25 Aug 2019 at 7:54pm
Software Version: Web Wiz Forums 11.10 -

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

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


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 -
Copyright ©2001-2017 Web Wiz Ltd. -