This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Upload file link to appear on email receipt
Started 15 years ago by evanclivejones | 3 posts |
-
I have created an upload file link. This works fine and opens ok in the email link. Is it possible also to have this available in the email receipt. At the moment it is just read only.
Posted 15 years ago # -
Hi,
Yes it possible by customize "includes/helper-functions.php",try to follow these steps :
1. Go to line 266, you'll see this code :
$options['strip_checkbox_image'] = true;
put this code exactly above that line
if( $form_id == 2){ $options['strip_download_link'] = false; }
2. Go to around line 286 and you'll see this code :
$template_values[$i] = strip_tags($data['value']);
replace the code with this one
if ($form_id == 2) $template_values[$i] = strip_tags($data['value'],'<a>'); else $template_values[$i] = strip_tags($data['value']);
3. Go to line 358, you'll see this code :
$data['value'] = strip_tags($data['value']);
replace the code with this
if ($form_id == 2) $data['value'] = strip_tags($data['value'],'<a>'); else $data['value'] = strip_tags($data['value']);
Those code will activate upload link for mail receipt in form 2, make sure you change the form ID with yours
MachForm Support
Posted 15 years ago # -
Many Thanks for this.
It worked fine.
Posted 15 years ago #
Reply
You must log in to post.