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

How do I print the file name on the form?

Avatar

Level 1

The data set that I am using with Designer is a series of equipement specfications for vendors. For tracking purposes it would be nice to be able to place the file name, which contains some equipment information, on the form without having to type it in. As these forms will be going off electronically to various vendors who may or may not submit it back electronically it would be nice to be able to correlate the response to the original.

1 Accepted Solution

Avatar

Correct answer by
Level 3

In the calculate script (JavaScript) of a text field, enter:

this.rawValue = event.target.documentFileName;

It will update once the form is saved.

Hope this helps.

View solution in original post

0 Replies

Avatar

Level 10

Can you include the file name in the source data file and bind it to a field like any other field?

Steve

Avatar

Correct answer by
Level 3

In the calculate script (JavaScript) of a text field, enter:

this.rawValue = event.target.documentFileName;

It will update once the form is saved.

Hope this helps.

Avatar

Level 1

Thank you, That piece of java script works nicely.