Forums

Form in module passes data to another Form

perarg 09 Feb, 2012
Hello,

i 've made a small form placed at a module position. I have a button there says "Continue". I made another form (not in module position) with more fields on it and i would like when the Continue button is pressed then the data from the "small" form passed to the "big" one.

What is the most appropriate way to achieve this ? (I searched the forum but i couldn't find something relevant to this. I use the latest version of the CF v4).

Thank you very much
GreyHead 09 Feb, 2012
Hi Perarg,

You can use the 'Data to Session' and 'Session to Data' actions in CFv4.

Bob
perarg 09 Feb, 2012
Hello Bob,

thank you for the rapid reply...🙂

Can you be a little more specific about the configuration ?

Where do i use the one and where the other ?
GreyHead 09 Feb, 2012
Hi perang,

Use the 'Data to Session' action to save the form data to the User session in the On Submit event of form 1; use the 'Session to Data' action to get it back in the On Load and/or On Submit events of Form 2.

Bob
perarg 09 Feb, 2012
Hi Bob,

Should i put a redirect action to the second form ? Or using the Session to Data redirects automatically (stupid question?? How should this be happened!?)
Do i have to rename the two form with the same name ? Or i just use the same session key ?
perarg 09 Feb, 2012
Reply to myself,

the RedirectUser action does the job
GreyHead 09 Feb, 2012
Hi perarg,

Yes, and use the same session key.
This topic is locked and no more replies can be posted.