Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Can i add a link to file within javascript ?

Avatar

Level 4

Hi again,

 

quick question, im building a submit email/PDF button here and again works great, and it looks a bit like this:

 

var cBody = "Please provide your response by completing the Accommodation Review and Agreement Form";

// Build the email URL
var cEmailURL = "mailto:" + cToAddr + "?cc=" + cCCAddr + "&subject=" + cSubLine + "&body=" + cBody;

// Function that actually sends data
event.target.submitForm({cURL: cEmailURL,cSubmitAs:"PDF",cCharSet:"utf-8"});

 

Now, question, in the cBody variable, is it possible to include a link to another PDF? so that when the email is fired-up, and pops onto the screen, i can see that link within the body message of that email.

i was thinking, maybe an Href function, but not sure how the syntax might even work.

 

Thx again

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor