Forums

CFChronoForm -> tablerow not working

crprashant 24 Apr, 2012
Hi Max / Grey Head,
I am trying use below code:

<?php
$MyForm =& CFChronoForm::getInstance('my_form_name');
$cf_id = $MyForm->tablerow['jos_chronoforms_my_table_name']->cf_id;
echo $cf_id;
?>


But I am not getting the cf_id in the email / Thank you message. Below is the debugger Infomation
Array
(
    [option] => com_chronoforms
    [chronoform] => YouthWingRegForm
    [event] => submit
    [Itemid] => 
    [Name] => Test
    [Email] => xxxx@microsoft.com
    [input_select_6] => Talent Show
    [input_datetime_7] => 2012-04-24
    [input_datetime_8] => 12:26:03
    [Submit] => Submit
    [6667b9d5103e5d33592de03661d86794] => 1
    [chronoform_data] => Array
        (
            [cf_uid] => 8af1fa5782401cdaef9e4d343cf2930b
            [cf_created] => 2012-04-24 01:56:08
            [cf_ipaddress] => 207.46.55.30
            [cf_user_id] => 0
            [option] => com_chronoforms
            [chronoform] => YouthWingRegForm
            [event] => submit
            [Itemid] => 
            [Name] => Test
            [Email] => xxxx@microsoft.com
            [input_select_6] => Talent Show
            [input_datetime_7] => 2012-04-24
            [input_datetime_8] => 12:26:03
            [Submit] => Submit
            [6667b9d5103e5d33592de03661d86794] => 1
            [cf_id] => 8
        )

    [chronoform_data_cf_id] => 8
)
Validation Errors: 

Array
(
)
Thank you Test

tablerow['t67yq_YouthWingRegForm']->cf_id; ?> Your Registration Number is Debug Data
1.email
1.0
1.ResultAn email has been SENT successfully from (Prashant)cr.prashant.kumar@gmail.com to xxxx@microsoft.com  
2.BodyDear Test,

Thank you for registering with us.

Youth Wing - Registration Form 
Name : Test 
Email : xxxx@microsoft.com 

Thank You, Youth Wing

Your Registration Number is 

Submitted by 207.46.55.30  
3.Attachmentsarray ( )
This topic is locked and no more replies can be posted.