I have set up a multipage form in CFV5, and encounter the same diffictulties as described in this post here but with V5, not V4, so I create a new post. Also, I am interested in best practice for CFV6, as I can't seem to migrate my form in one piece.
The users have to fill a 6 page Form with the aim of creating a downloadable PDF at the end. For the PDF creation I use an external library, but this should not be of any interest I think. Session lifetime in Joomla is set to 15 minutes, and most people seem to end up with lost data on the first few pages, because they wait longer than that to continue, having to go and collect information in order to complete the form. I added a manual keepalive by adding this code to each page:
Here I'd appreciate some support.
And then I have a more "philosophic" question to the whole community:
I am thinking of rebuilding the form in CF V6 if I have major changes in its structure, but I am not sure if I will go on with the multipage idea. If so, I'd probably opt for database update rather than session, so with a token, people could even come back after closing the browser / shutting down their computer. If not, maybe an accordion or tabs will be a better solution as people will be able to click through it and be able to prepare them selves in advance. What are your thoughts/experiences about this?
The users have to fill a 6 page Form with the aim of creating a downloadable PDF at the end. For the PDF creation I use an external library, but this should not be of any interest I think. Session lifetime in Joomla is set to 15 minutes, and most people seem to end up with lost data on the first few pages, because they wait longer than that to continue, having to go and collect information in order to complete the form. I added a manual keepalive by adding this code to each page:
JHtml::_('behavior.keepalive')When I test, I get all the data at the end, even if I wait way longer than 15 minutes. Also, in the HTML Source code of the page I actually see the keep alive token being added in the header. Yet I just got notified of a form procedure ending up with no data apart from the last page, so it looks like there still is an issue.
Here I'd appreciate some support.
And then I have a more "philosophic" question to the whole community:
I am thinking of rebuilding the form in CF V6 if I have major changes in its structure, but I am not sure if I will go on with the multipage idea. If so, I'd probably opt for database update rather than session, so with a token, people could even come back after closing the browser / shutting down their computer. If not, maybe an accordion or tabs will be a better solution as people will be able to click through it and be able to prepare them selves in advance. What are your thoughts/experiences about this?