Forums

multipage - all pages to send by email

hcohl 03 Oct, 2018
In a multipage form: How can I send the values of all my pages by email
{data:text1} gives onla the value of the page with the submit button
Where can I find a tutorial
GreyHead 03 Oct, 2018
Hi hcohl,

Which version of CF are you using?

The MultiPage action will save the data from one page and make it available in later pages and ON Submit.

Bob
hcohl 03 Oct, 2018
Thank you
hcohl 03 Oct, 2018
I've built a pretty bulky form in cf5. Now and again there are problems with users whose data disappears during the filling process. As a solution to this problem, I would now like to build a form as a multipage form.
After each page, the data should be written to the database.
Is that possible? Where can I find instructions?

I have built a save-data-action on each page and assigned the same model name. Nevertheless, individual database entries are generated for each page. But I need all data in one database table.
GreyHead 03 Oct, 2018
Hi hcohl,

You save the data into the same record after each page is submitted, after the first page the id of the new record is added to the form data so you can use that to update the same record on later pages. I usually add a 'status' column to the table that can be set to 'complete' or some other value on the final submission.

Bob
hcohl 03 Oct, 2018
Thank you for your answer.
My multipage testform creates for every page a unique record.
How do I add the "id"? Do I need a hidden field with the field name "id"?
And where can I find instructions for 'status' column?
healyhatman 03 Oct, 2018
There are no "instructions for status column". All you need to do is add a column to your data table called "status" and on your FINAL savedata action, when the whole form is now complete, you set the status to complete ( or 1, which is better).

I'm not aware of the id of the new entry being added to the form data, so yes I would use a hidden field with its value set to {var:save_data#.id}, replacing # with the number in the black label of the previous page's save data action.
This topic is locked and no more replies can be posted.