Jump to content

generate PDF Title from textfield


Recommended Posts

Hello everyone,

this is my very first post in this forum!

Description of the problem:

I want to set the input from a textfield as the documents new filename after pressing a button which is programmed as following:

var berichtsname = this.getField("Berichts Nr").valueAsString;
bSave: true,
cFilenameInit: berichtsname + ".pdf"

The problem is that the user can't select a file type in the drop-down menu (it's just empty).

To make this clear:

I want the title of the open pdf-file to be changed to the input of the textfield "Berichts Nr".

This is important because I want to automatically send the file with the new name via email, which works just fine.

Thank you for your help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.