Can i add a link to file within javascript ? | Community
Skip to main content
New Participant
March 18, 2021
Solved

Can i add a link to file within javascript ?

  • March 18, 2021
  • 1 reply
  • 1110 views

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

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rohit_Utreja

Hi @patrickpai ,

 

please use the below URLs for dynamic URLs creation.

https://stackoverflow.com/questions/20834002/building-dynamic-url-using-a-href

https://www.w3schools.com/jsref/jsref_link.asp

 

1 reply

Rohit_Utreja
Rohit_UtrejaAccepted solution
New Participant
March 19, 2021