ChronoForm Functionality

webydesig 09 Apr, 2010
OK Guys..
I have one problem please fix it if you can,

I have one form with some 6 checkboxes.. each has its associated pdf file. The User can check as many box and then he puts his email address now after submit the form i want to send him an email with the attachement what he just has choosen by checking the checkboxes.

for eg.

checkbox1 "I am checkbox 1 and my associated pdf file is sendme1.pdf"
checkbox2 "I am checkbox 2 and my associated pdf file is sendme2.pdf"
checkbox3 "I am checkbox 3 and my associated pdf file is sendme3.pdf"
so on...

Now if one user suppose checked 1 and 3 then the email which he will get has two attachements sendme1.pdf and sendme3.pdf

Hope you have understood.

please give me response asap

Thanks a lot.
GreyHead 09 Apr, 2010
Hi webydesig,

A very similar question was asked and answered a few weeks ago, please check the forums for that thread.

Bob
webydesig 09 Apr, 2010
Bob,

I have checked that post i think you are talking about $attachements['fields_name']="root path for the files"

I have tried but my badluck

some tricky thing i was doing and i am able to send the click here link to download but its note coming as attachment..

Can you please help me

Thanks
webydesig 09 Apr, 2010
Bob,

I got your response on the thread
<?php
$form_id = $MyForm->formrow->id;
$MyUploads =& CFUploads::getInstance($form_id);
$MyUploads->attachments[] = 'files/vendorlist.pdf';
?>

But i am using ChronoForms V3.1 RC3. In this version & CFUploads is not working..
You have anything for this version. I dont want to mess around my all forms and do upgrade and all..

Please help
Thanks
GreyHead 10 Apr, 2010
Hi webydesig,

I'm sorry, I simply don't remember how the old code worked. If you dig far enough back into the forums you should find some examples. Try searching on 'attachments'.

Bob
webydesig 12 Apr, 2010
Thanks Bob,

I am searching the entire thread

Thanks for your help but if possible for you to remember the code then please post it
This topic is locked and no more replies can be posted.