Email a form in CF6

kkurtz 21 Dec, 2018
I am trying to email a form I have set up in CF6. The form is called up from a CC6 link and displays correctly on the website including data from a table. However when I try to send an email from the front end with the form in it I get nothing. The form is set up with HTML and contains fields from the table in CC6 and some static items. If I preview just the form in the back end it doesn't have the table data items but the email goes through. This leads me to believe that the data is not getting to the email action.

Put another way, the table data gets to the CF6 form because it displays correctly, but it doesn't get to the email action.
healyhatman 21 Dec, 2018
How have you got your email event set up ? Because it sounds like you don't have it right. Because it will be trying to access the events of the CC connection, not the events of the form.
kkurtz 22 Dec, 2018
The email action is In CF6. Are you saying that I need to have an email event in CC?
The form displays in CF and it has a Send Email button on it which executes the email action in CF. The action has a recipient, a subject and the body is HTML code.
So how would I execute a CC event from a button on the CF form?
healyhatman 22 Dec, 2018
Are you sure the CF button submits to the correct event when displayed in a CC connection ?
kkurtz 22 Dec, 2018
I don't understand your question. The CF button submits the email action in CF, not CC. As I mentioned if I execute from the preview of the form the email is sent, but without the table info. If I click on the link to the CF form from the CC table view, the form is displayed with the table fields embedded, but the email is not sent when the email button is clicked. So my thinking is that the email action is not getting the data from the table.
healyhatman 22 Dec, 2018
Yes when you preview the form it will submit to the form event. But you're displaying the form in CC so if you look it will probably be submitting to a CC event. The button didn't determine where the data is submitted, the form's "action" tag does.
kkurtz 22 Dec, 2018
The light finally dawned!

I'll need to put in one more step though. When the email button is clicked I need a form to ask the user to enter their email. Then click another send button. Wish me luck.

Thanks.
This topic is locked and no more replies can be posted.