Site structure
Version 6.x > Site structure > Accessing Form Data View modes: 
User avatar
Member
Member
Tylert - 8/27/2013 12:01:58 PM
   
Accessing Form Data
Hi, I'm very new to the Kentico environment and have a quick question. I would like to be able to use the form data from a previously submitted form and 'pre fill in' data on the next form. So the chain of events would look like the following:

Form1 has name and email -> users submits form1 -> user is redirected to form2 -> form2 has name and email already filled from Form1.

Is this possible and if so, what is the best way to achieve this?

Tyler

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/27/2013 1:20:17 PM
   
RE:Accessing Form Data
Hi,

Have you tried to follow the idea of the multistep form? You will just use the same fields for all the alternative forms.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Tylert - 8/27/2013 1:23:44 PM
   
RE:Accessing Form Data
Thank you for your quick reply. I noticed that the post there specified for version 7.x. Will it also work for version 6?

Thank you,

Tyler

User avatar
Member
Member
Tylert - 8/27/2013 3:31:31 PM
   
RE:Accessing Form Data
Hi again,

I just wanted to follow this up with that I have gotten it figured out. I used the QueryString macro feature. On form1 in the redirecting URL I attached the parameters that I wanted to forward off like so:
~/MyBaseURL/Form2?name={%formfieldname%}&email={%formfieldemail%}

Then in the second form I was able to set default values for the respective fields the very same way:
{%email%}

I hope that this helps others that are in my same situation.

Thank You,
Tyler

User avatar
Member
Member
Tylert - 8/27/2013 3:48:44 PM
   
RE:Accessing Form Data
Tylert wrote:
~/MyBaseURL/Form2?name={%formfieldname%}&email={%formfieldemail%}

This should actually read as follows:
~/MyBaseURL/Form2?name={%formfieldname%}&email={%formfieldemail%}