I'm getting the below after I submit my form but I don't know what it means. I received the pdf file in the email but that code is showing on the page after submission.
$_FILES: Array ( [acceptance-document] => Array ( [name] => PDF-Form-Test-1.pdf [type] => application/pdf [tmp_name] => /home/.../chroot/mywebsite.com/home/.../mywebsite.com/tmp/phpaFirpj [error] => 0 [size] => 8911 ) )
Also, although I received the file in my email the file field is blank, meaning that it does not indicate that there is an attachment.
The field looks like this in the email:
"Acceptance document enclosed:"
How can I make it look like this ONLY if there is an attachment?
"Acceptance document enclosed: Yes"
Thank you!
$_FILES: Array ( [acceptance-document] => Array ( [name] => PDF-Form-Test-1.pdf [type] => application/pdf [tmp_name] => /home/.../chroot/mywebsite.com/home/.../mywebsite.com/tmp/phpaFirpj [error] => 0 [size] => 8911 ) )
Also, although I received the file in my email the file field is blank, meaning that it does not indicate that there is an attachment.
The field looks like this in the email:
"Acceptance document enclosed:"
How can I make it look like this ONLY if there is an attachment?
"Acceptance document enclosed: Yes"
Thank you!
Hi LikeStuff,
It looks to me as though you have some Debug code left - probably in a Custom Code action.
When you find that you can add some more custom code to check if there is an uploaded file - the file input entry will have a value - and then set $form->data['enclosure'] to 'Yes' or 'No' to use in your Email template.
Bob
It looks to me as though you have some Debug code left - probably in a Custom Code action.
When you find that you can add some more custom code to check if there is an uploaded file - the file input entry will have a value - and then set $form->data['enclosure'] to 'Yes' or 'No' to use in your Email template.
Bob
This topic is locked and no more replies can be posted.