How can I include the output of a form in an email form?

faitas 01 Nov, 2014
I am using a form [form1] to output the data of a table. At the end of that page I have a link to respond to that information with an email that links to an other form [form2].
Now, how can I include the information from form1 into the email of form2?
GreyHead 01 Nov, 2014
Hi faitas,

Use a Data to Session action in the On Submit event of Form 1 and a Session to Data action in one of the events of Form 2 ( it depends where you want the data). Add a Session Key to both actions to identify the data set.

Bob
faitas 01 Nov, 2014
there is not a submit session on Form 1. Only a link to a popup Form 2 with an email

 <a class='modal' href='index.php?option=com_chronoforms&chronoform=email_form&email=".$form->data['email']."&tmpl=component' >Send and email here</a>
faitas 01 Nov, 2014
ok. figured it out. can work On Load as well!

thanks, once again!🙂
GreyHead 01 Nov, 2014
Hi faitas,

Does the link work? If so then ChronoForms will automatically add the values to the $form->data[''] array for you.

Bob
This topic is locked and no more replies can be posted.