Forums

After saving to DB, emailing cf_uid

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?
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
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.
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
Leenders 07 Oct, 2014
That's what i need.
This topic is locked and no more replies can be posted.