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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Form History

Iakov_Qvaz
Level 4
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
Niall_O_Donovan
Level 10
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

Iakov_Qvaz
Level 4
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?

Niall_O_Donovan
Level 10
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