Copy link to clipboard
Copied
I would like to have a customers email field on my form so that when the submit form button is pressed the form will be submitted to our office and the customer.
thanks
Copy link to clipboard
Copied
This requires using a script. See: https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address
Copy link to clipboard
Copied
Thanks I am not a coder so please bear with me. When I create a button I go to the Action tab and select trigger Mouse up.I then select submit a form in select action. Where do I type the code
Copy link to clipboard
Copied
Instead of "Submit a form" select "Run JavaScript".
Copy link to clipboard
Copied
Thanks but do I copy and paste complete script shown or only parts of it. I understand I have to change email addresses within the script.
Copy link to clipboard
Copied
OK sorry to trouble you as I have now been able to make this script work which is fantastic. I would like to edit it so that a field on the form called Job Number is placed in the attached field of the email. Is this possible please?
Copy link to clipboard
Copied
Do you mean you want to use that field's value in the subject line of the email? If so, please post your code and describe what the full subject line should be.
Copy link to clipboard
Copied
OK. Not in the Subject line but in the Attached line. The form is called "Engineers Report" and it has a field called "Job No:" . The job number field is completed with a unique number e.g. J12345. I would like the email attached line to state Engineers Report J12345.
Copy link to clipboard
Copied
Ah, you mean that you want to rename the file before attaching it... That's more difficult. It's only possible if a script is installed on the local machine of each user who is going to use it, basically.
Copy link to clipboard
Copied
OK having a rethink can I put "Engineers Report Job No J12345" in the subject line and I will save the document with a file name which is more generic.
Copy link to clipboard
Copied
Sure. Set the cSubject parameter in your code to:
cSubject: "Engineers Report Job No " + this.getField("Engineers Report").valueAsString
Copy link to clipboard
Copied
Thankyou you have a very special skill much appreciated
Copy link to clipboard
Copied
One last thing how do I get a space between No and J12345 please
Copy link to clipboard
Copied
There is a space there in the code I posted above...
Copy link to clipboard
Copied
Thanks my mistake
Copy link to clipboard
Copied
Look at the space after No.