ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Insert cf_id into the response email (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Insert cf_id into the response email
#1383
websavages1 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 0  
Greetings,

I have created a form and the results are email to the relevant party. However I would like to add the value for cf_id in the email.

Any ideas?

Cheers ws
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1384
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 59  
Hi websavages1,

I'm assuming that cf_id here is the ChronoForms form id? If that's right then you can include a hidden field in your form like this:
Code:

<input type='hidden' name='cf_id' value='<?php echo $rows[0]->id ?>' />
and that will give you the form id in the form variable 'cf_id' that you can include in your e-mail like any other variable. Does this help? Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#1385
websavages1 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 0  
Unfortunately not.

Once the user has submitted the form I would like to include the newly created cf_id in the email which is sent.

Doing it via your method means I can only access the data which has already been created.

Cheers ws
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1388
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 59  
Hi websavages,

Sorry, I misunderstood the id you were looking for. At present the database entry is created after the e-mail is sent so you don't know what the cf_id will be (it's autogenerated when the database entry is written).

I'd need to go and check my MySQL manual but I think that there is an SQL command that will generate the 'next ID'. Perhaps putting that in the 'OnSubmit code- before email' would do the trick.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#1396
websavages1 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 0  
So instead of the auto-generate section creating the database entry, the 'OnSubmit - before email' section generates the database entry. That's a possibility, however, how do I (once I have got the newly created cf_id value) get the value for cf_id into the email?

Cheers ws
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1398
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:Insert cf_id into the response email 11 Months, 2 Weeks ago Karma: 22  
Hi Ws,

Lets try this trick, at the onsubmit AFTER email box plz write :

Code:

echo $html_message;
what do you get after submitting the form now ?<br><br>Post edited by: admin, at: 2007/07/25 15:46
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials