Expand my Community achievements bar.

Add filename and path into PDF-form

Avatar

Level 1

Hello,

I create different PDF-forms for our company with LiveCycle Designer 8.2.1 .

Now I have to integrate the name of the form-file and its path automatically into the form. My idea is to place a text-field, I will give the type "calculated" in the value-tab of the object-palette. This Text-field should be filled with the file name and the path where it's stored in the background. I find these two values in the info-tab of the form-properties dialog-box. My questions is: How do I get these values, that I can place them via script into my text field?

Can someone give me a hint? Thanks.

1 Reply

Avatar

Level 5

 

To get the path ... event.target.path;

To get the file name .... event.target.documentFileName;