Javascript - Email Button, based off of radio button Selection, and select email subject
Hello,
I have a form that I want to send VIA a submit button to a variable email address based off of an earlier selection in a radio button.
I am new to JavaScript, This is what I have so far, although I know this is not correct.
this.submitForm(
"mailto:mm@mycom.com?" +
"&cc=123@abc.com" +
"&subject= [ID CODE] + "[Customer Name]"
);
cSubmitAs:"PDF"
});
What I need to happen is below.
My form has a radio selection button with 5 options
If option 1 is selected then email 1@abc.com + CC anna@abc.com
If option 2 is selected then email 2@abc.com + CC anna@abc.com
and so on...
for the subject line I want it to pull 2 fields from the form Client Number + Client Name after Template Submission
For Example Client Number is 1234 and name is Joe Smith
The subject should read Template Submission 1234 - Joe Smith
And lastly I need the attachment of the form to be PDF version
Thank you in advance for your expertise!
