Hi there,
I've been on ChronoSearch for a while, looking for the right way to get newly created cf_id after my my form get submitted. So I used this code in my OnSubmit after email (DB saved before mail):
But I always get an empty $id var. What am I doing worng?
Cheers,
rash*
I've been on ChronoSearch for a while, looking for the right way to get newly created cf_id after my my form get submitted. So I used this code in my OnSubmit after email (DB saved before mail):
$MyForm =& CFChronoForm::getInstance();
$id = $MyForm->tablerow["jos_chronoforms_MyForm"]->cf_id;
echo "This should be record no. ".$id."!<br />";
But I always get an empty $id var. What am I doing worng?
Cheers,
rash*