Include ID field after DB Save into into "Thank you message"

jaak 08 Apr, 2016
Hi,

I save form data into DB (Works OK)
I understand according to article (https://www.chronoengine.com/faqs/63-cfv4/cfv4-working-with-form-data/2596-how-can-i-give-a-unique-id-to-each-form-submission.html) i can include datatable ID value (preferably) or datatable uniq_id value into thank you message.

My problem is can't get it work. If I include
<?php echo $form->data['chronoform_data']['id']
into Display Message box, the first php tag gets crippeled and PHP code not excuted. And is the code correct?

There should I place it to get ID displayed in Thank you message.

Jaak
GreyHead 08 Apr, 2016
Hi Jaak,

You can't use PHP in the Thank You Message action. If you use {chronoform_data.id} that should work OK. Or you can use the PHP in a Custom Code action instead.

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