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
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.
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
Copy link to clipboard
Copied
On a mobile device it's not possible at all.
Copy link to clipboard
Copied
Hi
It works a treat from my iphone using PDF expert
Thanks
Copy link to clipboard
Copied
I was referring to saving the file under a specific name.