Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Save file name acrobat when emailing document

New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi 

 

I have used this piece of code to within a button to send a file to 2 desginated recipients and included a text field as the subject line.

 

var customSubject = this.getField("Text1").value;
var mailtoUrl = "mailto:mark.surname@work.com;ian.surname@work.com?subject=" + customSubject;
this.submitForm({
cURL: mailtoUrl, cSubmitAs: "PDF" });

 

Whilst this works well, I would like to name the file the same as the Text1 field when sending the mail.

 

Any help is much appreciated.

 

Mark

TOPICS
JavaScript, PDF forms

Views

33

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

In order to do that you have to install a script file on the local machine of each user who will be using the file.

If that's not possible you can only ask the user to save the file under this name, and if they don't refuse to submit it, but you can't enforce it.

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi try67

 

Thank you for your input. I won't be doing that; I am buidling something that essentially can be executed on a mobile phone and sent to mail recipients. I just wondered if there was a way this could be done on the submitting of the email.

I am using PDF expert on my mobile device.

 

Kind regards

Mark

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

On a mobile device it's not possible at all.

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi

 

It works a treat from my iphone using PDF expert

 

Thanks

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

LATEST

I was referring to saving the file under a specific 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