Expand my Community achievements bar.

Retrieve document id?

Avatar

Former Community Member
Hello,



I was wondering if it is possible to retrieve a ID of some kind (Document ID), to identify a PDF Form. When a user will fill a form in and send the data back to me, i want to know from what FORM it came, because i am working with multiple forms.



So I was thinking when i generate a pdf document, i will store the document ID and when i receive the data back, I will read the document ID and handle the data accordently.



But I cant find a way to get the document id, is this by any chance possible?



Thanks in advance



Jalan
1 Reply

Avatar

Level 10
I don't know if this would help, but you could put a variable in the Form Properties window; the variable could have the Name "DocumentID" and the Value, say, "2006/Form 01" - or whatever you need.



Then in the Form itself you could place a text field by inserting a TextField with the following javascript on the "Layout:Ready" Event:



TextField1.rawValue = DocumentID.value;



This would then be exported or submitted by email with the other data (I think).



Good luck,



Niall