Forums

Hyperlink In Email Repsonse

bfleishman 08 Jun, 2010
Hello.

I'm tring to provide a link to a document in the email response for one of my forms.

I am getting the file name from a hidden field in the submitted form. I am able to successfully call the hidden form field and show the file name within the emailed response. However, I cannot assemble the full link to the file as the code for calling the hidden field value gets broken.

Here is my example email. The hidden field is {hidden_24} and if I don't provide a spece before it, it just echos the field name which means it is broken. If I leave the hidden field name by itself, it naturally shows the hidden value. Any suggestions?

----Please Do Not Respond To This Email----

Thank you for downloading this document. Please visit us again.
http://www.jaydien.com/bin/docs/{hidden_24}

Sincerely,
Jaydien Network Solutions
<!-- w --><a class="postlink" href="http://www.jaydien.com">www.jaydien.com</a><!-- w -->
Phone: 877.561.6734
Fax: 732.477.0054
GreyHead 08 Jun, 2010
Hi bfleishman,

Add some PHP in the OnSubmit Before box to build the URL
<?php
$hidden_24 = JRequest::getString('hidden_24', '', 'post');
JRequest::setVar('hidden_24', 'http://www.jaydien.com/bin/docs/'.$hidden_24);
?>
Then use just {hidden_24} in the email template.

Bob
This topic is locked and no more replies can be posted.