hello,
i want the forms users fills to save as pdf.
i have followed the instructions given here
https://www.chronoengine.com/faqs/61-cfv4/cfv4-tutorials/4133-how-can-i-create-a-pdf-including-form-results.html
however, i do not see the pdf as an attachment in the email. i have used the "view save to server option "
i went to the backend in the components / com_chronoforms / pdf /
i see all the pdfs there but i want the pdf to be saved as attachement in the email.
please does anyone know what else i have not done.
Thanks
i want the forms users fills to save as pdf.
i have followed the instructions given here
https://www.chronoengine.com/faqs/61-cfv4/cfv4-tutorials/4133-how-can-i-create-a-pdf-including-form-results.html
however, i do not see the pdf as an attachment in the email. i have used the "view save to server option "
i went to the backend in the components / com_chronoforms / pdf /
i see all the pdfs there but i want the pdf to be saved as attachement in the email.
please does anyone know what else i have not done.
Thanks
Hi m4smariaoni,
Please see this FAQ which explains how to do it with a CSV Export file, the same process should work for a PDF.
Bob
Please see this FAQ which explains how to do it with a CSV Export file, the same process should work for a PDF.
Bob
Thank you Grey head.
i added the custom code with the php info but when i go to the front end when i click submit button i see a 500 error on the site.
am i suppose to edit the php info in the custom code.
i added the custom code with the php info but when i go to the front end when i click submit button i see a 500 error on the site.
am i suppose to edit the php info in the custom code.
Hi m4smariaoni,
Oops, I just spotted a typo in the FAQ, there was a comma missing at the end of this line.
Bob
Oops, I just spotted a typo in the FAQ, there was a comma missing at the end of this line.
name' => $my_file_name,
Bob
thanks. i have made the update i see no more error 500 however i do not get the filled form as an attachment yet.
this statement in the url for pdf https://www.chronoengine.com/faqs/61-cfv4/cfv4-tutorials/4133-how-can-i-create-a-pdf-including-form-results.html
i did not implement anything here.
is there something i am suppose to do here
this statement in the url for pdf https://www.chronoengine.com/faqs/61-cfv4/cfv4-tutorials/4133-how-can-i-create-a-pdf-including-form-results.html
Output
The action will add the name of the saved pdf to the $form->data array using the name set in the 'File name in Data/Files array' box. For example:
$form->data['cf_pdf_file'] => demo_pdf_action_20130617082547.pdf
Attach to an email
You can then use the name of this value, cf_pdf_file is the default, in an Email action after the HTML to PDF action.
i did not implement anything here.
is there something i am suppose to do here
i mean this statement
Hi m4smariaoni,
Have you put anything into the Attachments box of the Email action?
Bob
Have you put anything into the Attachments box of the Email action?
Bob
i put in cf_pdf_file as seen in the image below so i have no idea why the form filled is not coming in as an attached email
Hello Greyhead,
is there something else i need to do please
is there something else i need to do please
Thank you Greyhead,
The email is attaching the form filled now. what i added to what i have done before is to change
['my_file'] to the name of my form and it WORKED.
Thank you for your support
The email is attaching the form filled now. what i added to what i have done before is to change
<?php
$form->files['my_file'] = array(
'name' => $my_file_name,
'original_name' => '',
'path' => $my_file_path.$my_file_name,
'size' => '',
'link' => str_replace(JPATH_SITE.DS, JURI::root(), $my_file_path.$my_file_name)
);
?>
['my_file'] to the name of my form and it WORKED.
Thank you for your support
also settings in html-pdf should be changed from view to controller
This topic is locked and no more replies can be posted.