Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Automatic field to display date saved/modified

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

28-10-2015

Hello,

I have a "Revision Date" field in a footer but it displays the current date. I would like to display the date the file was last modified.  This script in the layout:ready event is:


this.rawValue = util.printd("yyyy/mm/dd", new Date());




I'm looking for an equivalent of the modDate property in Acrobat, but the Javascript reference says there's isn't one for LiveCycle.


Any help is appreciated, thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_Bruce_Robertson
MVP

29-10-2015

Hi,

If you are meaning then the form template (as opposed to a user saving an instance of the form) was saved/modified you can try,

this.rawValue = util.printd("yyyy/mm/dd", util.scand("yyyy-mm-dd", xfa.timeStamp));

Regards

Bruce

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_Bruce_Robertson
MVP

30-10-2015

Hi,

The util.scand format specifies the input format, so your change makes sense.

The documentation can be found here http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?h...

and there's some other samples here  http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2014/03/using-utilprint-methods.html

Take care as there are some differences with the XFA format specifications and the Acrobat JavaScript format

Bruce

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Geckoz100
Level 3

30-10-2015

That works perfectly, thanks!

I decided I needed the date in mm/dd/yyyy format, but when I changed both masks to that format, it didn't work.  I had to change only the util.printd mask to mm/dd/yyyy.

Where can learn a little more about using the "util" method?