Expand my Community achievements bar.

Form History

Avatar

Level 4

Is it possible to track the history of a form?  Eg.,  dates and times it was opened and closed and who opened it?

4 Replies

Avatar

Level 10

Hi Iakov,

It is possible, but some of the tracking would require a trusted function, which is difficult to deploy and maintain.

Tracking when the form is opened is easiest. You can use the doc:Ready event, because this only fires once. There is kind of an example here https://acrobat.com/#d=06u-J6N34PQdaD25ZCPrSA, where objects are tracked, it may give some ideas for the docReady event.

There is a docClose event, but I think this fires after the form is closed, so you probably won't be able to write this data (time) to the form itself.

Accessing the user name will require the trusted function, there is a thread here dealign with that: Keep user from printing and seeing certain pages

Hope that helps,

Niall

Avatar

Level 4

Thank you,  Niall.

How about collecting all your samples in one folder so that I /we could bookmark that collection, instead fo learing about the samples one at a time?

Avatar

Level 10

Hi Iakov,

Here is a link which I hope works: https://acrobat.com/#w=3UgSWB0yrllYm*hvtlj8wg

I have uploaded 285 samples onto a shared workspace on Acrobat.com.

Disclaimer:

  • Some of these were for the forum and so may be a bit obscure when taken out of context.
  • For more recent examples I had the script on the form in a text object. This helps clarify the mechanisms. A lot of the older ones will not have this.
  • Some of the examples were things we were working up/trying, so some may not work as intended.
  • We are influenced by some great examples on these forums, and so acknowledge all of the developers who contribute to this great community.
  • You are obviously free to use, reuse, adapt etc - just remember where they came from and if you can acknowledge us, great ;-)

Have fun!

Niall