Multi page form restore value of fields with session data

miguelmpn 10 Nov, 2015
Hi,

I'm having a hard time to make this form http://www.flymii.com/en/booking-form.html?view=form&chronoform=booking store and restore all information when you click on previous and go to the first page. (I already tried handle arrays..)

Also if you set a cookie called "dev" on the site and go to the homepage you will see a small form, I need the first check box to do like the other fields and save the values to the chronoforms, I had it working with a radio input, but with the checkbox it's not working... any ideas?

If you have questions please ask, I tried to explain this the simplest way, maybe I forgot to mention something.

I appreciate any help.
Thanks.
GreyHead 11 Nov, 2015
Hi miguelmpn,

The previous data is reloading when I click previous so I guess you have solved this?

I don't have any easy way to set a cookie so I can't see the form on the home page - please post a direct link.

Bob
miguelmpn 12 Nov, 2015
It's all ok with the homepage form, I was looking for the problem in the wrong place, the checkboxes must be an array field, hence they need [] in the name, Chornoforms will automatically fill the fields if they are on GET, which is great!

As for chronoforms, I had to change the Session actions, I'll post them here so other people can check
Multi page form restore value of fields with session data image 1

Multi page
Multi page form restore value of fields with session data image 2

Data to Session
Multi page form restore value of fields with session data image 3

Session to Data
Multi page form restore value of fields with session data image 4

I'm not sure if I need all this steps (maybe GreyHead can confirm), but it seems to be working now, I hope this helps if someone stumbles upon this too🙂
This topic is locked and no more replies can be posted.