After saving to DB, emailing cf_uid

Include cf_uid and saved form data in a confirmation email.

Overview

The cf_uid and other saved data are not automatically available in the email template after a database save.
In the email template, use placeholders like {chronoform_data.cf_uid} to directly reference the saved form data.

Answered
Le Leenders 07 Oct, 2014
After a client saves some data to the DB using a form, i like to email this client all the data including cf_id and cf_uid info.
So that this client can update his/her saved data.

How can i do that?
Gr GreyHead 07 Oct, 2014
Hi Leenders,

If you temporarily turn on the form Debugger or add a Debugger action you will see that all the saved data is added to the $form->data[''] array after the DB Save action runs. You can include any or all of this into an Email template.

Bob
Le Leenders 07 Oct, 2014
I found this:


<?php
$form->data['cf_uid'] = $form->data['chronoform_data']['cf_uid'];
?>


I put it as custom code just before the email is been send.
It works.
Gr GreyHead 07 Oct, 2014
Answer
Hi Leenders,

You don't actually need that. You can put {chronoform_data.cf_uid} in the email template and the same for any other inputs.

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