Use submit Botton to rename and email document

New Here ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

I'm trying to automatically rename a file using fields from the document (date, clients name....) from an fillable pdf and then send it in an email. I have tried using Javascrpts but none of them have worked, it send the email but keeps the original file name. Is there a java script that will do both and would someone be willing to share it.

Thanks in advance.

Fred

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

99

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 07, 2019 May 07, 2019

Copy link to clipboard

Copied

Acrobat Javascript can't change names of files. It can save a copy with a new name.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
May 08, 2019 May 08, 2019

Copy link to clipboard

Copied

As mentioned, JS can't actually rename a file, but it can save it under a new name before submitting it.

That requires installing a script on the local machine of each user, though.

See: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 08, 2019 May 08, 2019

Copy link to clipboard

Copied

Hello and thanks so far.

Let me explain a little better on what I am trying to achieve. I have created a form that will be used for a safety briefing by multiple users in multiple locations on the same day (using iPads). Once that form has been completed I would like all user to email it to email address without saving it on the iPad (iPads don't have enough storage). The way the email function works now is it maintains the same file name as the original file. So the person receiving the emails now has to rename every file before they can add to a folder. Are you not saving the file as an email attachment before it sends?

Can you confirm that this is not possible and I will look for different options.

Thanks for your time.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
May 08, 2019 May 08, 2019

Copy link to clipboard

Copied

LATEST

On an iPad it's not possible.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines