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

SOLVED

File name into text field

bpx_hmemcpy
Level 3
Level 3

Is there a way to display the forms file name, into a text field?

Example: The form's file name is "MyForm.1.01.pdf"

I would like to display "MyForm.1.01" in a text field on the form.

If my form is saved and goes up a revision to say "MyForm.1.02"

"MyForm.1.02" is then displayed in the text field.

I was thinking, this could be on the pre open event, so that when the form is saved, it would display the new revision when the form is next opened?

Thanks in advance.

1 Accepted Solution
Niall_O_Donovan
Correct answer by
Level 10
Level 10

Hi,

The following will get the file name:

this.rawValue = event.target.documentFileName;

I would put this in the docReady event, as this event fires only once, when the form opens.

There is a sample here: https://acrobat.com/#d=ZnxO-dlXXFDS0GvYcQk2NQ

Hope that helps,

Niall

Assure Dynamics

View solution in original post

0 Replies
Niall_O_Donovan
Correct answer by
Level 10
Level 10

Hi,

The following will get the file name:

this.rawValue = event.target.documentFileName;

I would put this in the docReady event, as this event fires only once, when the form opens.

There is a sample here: https://acrobat.com/#d=ZnxO-dlXXFDS0GvYcQk2NQ

Hope that helps,

Niall

Assure Dynamics