I created a CF5 form (called AMNtransfer) to insert data which is saved in a database. Next I made a CC5 connection to show this data in another CF5 form (called AMNtransfer-edit) so it can be editted and again saved. On submit I added a connection action which saves the data. This all works fine.
If all information/data is complete and checked, I want to create a pdf file (which contains the full data for my own administration) and an email (which contains a short client overview) so I can send a confirmation to the client. I don't want to do this using the "AMNtransfer-edit", because then the form gets send after editing and before the check. So I made a third CF5 form (called AMNtransfer-download) and made a second connection to show the data in this form. In stead of a connection action on submit I insert a "TCPDF" and "Email" action. This also works fine, but here is my problem...
The fieldnames all contain the model name of the connection, e.g. "AMNtransfer[id]", otherwise the data doesn't show. But how do I use these fieldnames in the pdf and email html? I've tried {id} (=field ID), {AMNtransfer[id]}, {AMNtransfer.id}... I cant' get it to work.
If all information/data is complete and checked, I want to create a pdf file (which contains the full data for my own administration) and an email (which contains a short client overview) so I can send a confirmation to the client. I don't want to do this using the "AMNtransfer-edit", because then the form gets send after editing and before the check. So I made a third CF5 form (called AMNtransfer-download) and made a second connection to show the data in this form. In stead of a connection action on submit I insert a "TCPDF" and "Email" action. This also works fine, but here is my problem...
The fieldnames all contain the model name of the connection, e.g. "AMNtransfer[id]", otherwise the data doesn't show. But how do I use these fieldnames in the pdf and email html? I've tried {id} (=field ID), {AMNtransfer[id]}, {AMNtransfer.id}... I cant' get it to work.
Hi Elisah,
I would expect {AMNtransfer.id} to work. But to check what data is there you can add a Debugger action temporarily to see exactly what is in the $form->data array.
Bob
I would expect {AMNtransfer.id} to work. But to check what data is there you can add a Debugger action temporarily to see exactly what is in the $form->data array.
Bob
Data array:
Array
(
[cont] => lists
[ccname] => AMNtransferdownload
[act] => edit
[gcb] => 1
[chronoform] => AMNtransfer-download
[event] => submit
[AMNtransfer] => Array
(
[deb] => 099000
[dataanmelding] => 01-08-2014
[datfactuur] => 01-01-2015
[id] => 1
)
[button46] => Afronden
)
Errors
Array
(
)
Debug info
Array
(
[8] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:name@email.com
[2] => Subject:Bevestiging
[3] => From name:Elisah
[4] => From email:name@email.com
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Body:
[]<br /><br />IP: 81.206.170.157
)
)
)
This is what shows after clicking the submit button. I'm not sure how to read this. I left out tcpdf for now, just email.
This topic is locked and no more replies can be posted.