Forums

How to setup multi-form: Save data to DB and Retrieve

omidhz 30 Nov, 2015
I need to setup a wizard type multiple form with CFv5.0.10 (not multi page) for public visitors (not registered users)
Here is what I have:
[list]FORM 1:
[list=]Field1: DOB
Field2: Status (value: form1)
Submit Button[/list][/list]

On submit, data is being saved to DB1.

I need to retrieve DOB in FORM2. I know I need to use DB Read, but my question is how can load the row that was just submitted by this user without having the user_id? The form is going to be available to public (not registered). I think that I need to use the value in uniq_id. But I don't know how to pass the uniq_id from first form to second form
GreyHead 01 Dec, 2015
Answer
Hi omidhz,

You can use the Data to Session and Session to Data action to pass the data between the forms. You need to set a checkstring so that it will be recognised - that can be any convenient string like 'form_1_data'

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