Is there any way to get the current id in "On Submit code - after sending email". I have no problems getting all the other information from my cf to "On Submit code - after sending email" by using JRequest::getString('field');
Thanks
Markus
Thanks
Markus
Hi Bob
I need the id from the database insert from the cf. The idea is that I will do an update in the "On submit code"-field in the database record with data from another table and for this I need the id for the current record.
I need the id from the database insert from the cf. The idea is that I will do an update in the "On submit code"-field in the database record with data from another table and for this I need the id for the current record.
Hi Picopaco,
This should do it
Bob
This should do it
<?php
$cf_id = $MyForm->tablerow["jos_chronoforms_my_form_name"]->cf_id;
?>
Bob
Sorry to bring up an old post but I think it's better than opening a new thread for the same question. I am trying to use this same code on the "On Submit code - after sending email" part. I have all the rest of my PHP working there. But I cannot get the cf_id for some reason. This is the code I am using:
I have checked and double checked the table name, I copied it directly from the MySQL DB list. I also double checked and the table does have the cf_id field. I am using version 3.2.
Any ideas?
<?php
$cf_id = $MyForm->tablerow["jos_chronoforms_donacion"]->cf_id;
echo $cf_id;
?>
I have checked and double checked the table name, I copied it directly from the MySQL DB list. I also double checked and the table does have the cf_id field. I am using version 3.2.
Any ideas?
Hi jfreak53,
Please check the RunOrder tab, you have to have the 'OnSubmit block' after the 'Autogenerated Code'.
Bob
Please check the RunOrder tab, you have to have the 'OnSubmit block' after the 'Autogenerated Code'.
Bob
This topic is locked and no more replies can be posted.