How to pass variables from one ChronoForms to another

fyanko 20 Feb, 2013
I have two forms, one a survey and the other a results form. Upon completion of the survey I capture the users email address and would like pass to the second form "Results" for it to send him the email. What is the best way to do this with ChronoForms? I was thinking of a Javascript submit option but it seems there should be a simpler way. Let me know your thoughts!
http://www.servnettech.com/it-resource-calculator/
GreyHead 20 Feb, 2013
Hi fyanko,

You could just make the form multi-page by adding a new event to load the new form and pass the data over using the Multi-page action. Alternatively, you could pass it in the User Session, or simply by tagging it on to the URL and calling another form that way.

Bob
fyanko 23 Feb, 2013
Bob,

The more I'm thinking about it the more I realize both forms should somehow be one with multiple pages. The question I have is how do I show a different page of a form in two different Joomla modules that are on the same page? Let me know your thoughts... Thanks!
GreyHead 23 Feb, 2013
Hi fyanko,

I'm still not quite sure what the second form does but it seems to me that one way to handle this would be with JavaScript. you could watch the email field (or the submit button) in form one and automatically pass the email address to form two.

Bob
fyanko 23 Feb, 2013
Bob,

The other form just shows the results from the things entered in the first form. The reason why I separated them is because both forms need to appear in different modules. Also the results from the second form need emailed to a user. The results from first form just get put in database. I can capture the results from one and put in the other with Javascript but the problem then I need to submit both forms at once and not sure how to do that.
This topic is locked and no more replies can be posted.