Collect file name

H

Hasse

Hi,

When saving an existing form I would like to put the forms file name
in a text box in the form. Is this possible?
Otherwise I can set the text box's content when opening a saved form.
When I submit the form to a SharePoint library I set the file name to be
Today().

Regards,
Hans
 
G

Greg Collins [InfoPath MVP]

If your specifying the filename before saving, then set that value to a field. Otherwise, when the form is opened, you can get the filename from the XDocument.URI property.
 
H

Hasse

Thanks a lot Greg,

I used your solution with the XDocument.URI property and it works great.

Regards,
Hans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top