We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
Copy link to clipboard
This was answered and works a treat. Thanks to Karl Heinz Kremer but I have one more question. How do I remove the file extension? (.pdf)
I'm using this code currently:
getField("Text1").value = documentFileName;
Please could someone give me the extra code to remove the file extension.
Thanks in advance.
this.getField("Text1").value = this.documentFileName.replace(".pdf", "");
You diamond! Works perfectly, thanks.