Hi,
in my email I wanted to receive the value of cf_id, I put in Step3 Design your Email(s): Id {cf_id}
but in my inbox I receive Id {cf_id} instead of the value of {cf_id}
Thank you for your help
[Solved] receive the value of cf_id
8 posts
• Page 1 of 1
[Solved] receive the value of cf_idLast edited by loli on Fri Jun 10, 2011 2:46 am, edited 1 time in total.
Re: receive the value of cf_idHi loli,
This is the cf_id from the saved record? And you are using ChronoForms v3.2? This isn't available until after the data has been saved to the database and then you have to get the value from the saved data record. The code you need is here:
Then you must set the DB Connection to run Before Email. Bob Bob Janes : ChronoForms Support
Tell us how we are doing - the Chrono Satisfaction Survey If you'd like to buy me a beer - then thank you very much
Re: receive the value of cf_id
yes
yes in Setup Email I put Use Template Editor:NO, I then paste the code in Emails Templates, test after I received my mail in the following error:
Thank you Last edited by loli on Wed Jun 08, 2011 9:51 pm, edited 1 time in total.
Re: receive the value of cf_idHi loli,
Did you replace my_form_name and my_table_name with the names of your form and your table? Bob Bob Janes : ChronoForms Support
Tell us how we are doing - the Chrono Satisfaction Survey If you'd like to buy me a beer - then thank you very much
Re: receive the value of cf_id
thank you very much it works
Re: receive the value of cf_idHi,
thanks, i am using cf_id to show user ticket. http://www.joomir.com وب هاستینگ
Re: receive the value of cf_idfor getting cf_id i am using this code:
<?php $db =& JFactory::getDBO(); $query = "SELECT * FROM Your_Table_Name order by cf_id DESC"; $db->setQuery($query); $row = $db->loadRow(); echo($row[0]); ?> in on submit code with custom action http://www.joomir.com وب هاستینگ
Re: receive the value of cf_idHi joomir,
That code is not entirely reliable. If two (or more) people are using the form at the same time then this may give you the incorrect value.
Bob Bob Janes : ChronoForms Support
Tell us how we are doing - the Chrono Satisfaction Survey If you'd like to buy me a beer - then thank you very much
8 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: ben.pedroza and 6 guests |


