I've got a handful of different surveys that are token-based and use token persistence to save partially completed responses.
For some reason just recently it seems that the token persistence isn't working for some responses. I'd estimate that 95%+ of tokens are working correctly, but up to 5% do not save the response progress when the respondent resumes the survey.
To clarify:
1. I enter the token and complete half of the survey, then close the browser.
2. I re-enter the token, and the survey has gone back to the start rather than continuing from the question I was up to.
3. I check the response data and all of the response data is still saved. Even when going through the questions for the second time, the data from the first attempt is still retained, but is overwritten as the questions are completed a second time.
Also I can confirm that it is not creating a new survey response in the data. It is definitely still referencing the same survey response ID.
Is there a fix for this, or an idea on what it is that would be causing the issue?
It seems strange that it only effects a very small percentage of the tokens, but token persistence is extremely crucial for the purpose that I'm using it for so a solution would be greatly appreciated.
> 3. I check the response data and all of the response data is still saved. Even when going through the questions for the second time, the data from the first attempt is still retained, but is overwritten as the questions are completed a second time.
Seems to be an issue with step ? You update something in survey settings ?
current step is saved in lastpage column.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Nothing has been updated in the survey settings that I'm aware of. It seems strange that it only affects a small number of tokens, but most work fine.
This has now been happening across all surveys, so it doesn't appear to be survey specific either.
I just did a test with one of the tokens that has been having the issue and clicked through to page 20, then when closing the survey and reentering the token it is back to the first page, and the "lastpage" field is set to 0. All of the data is still in the responses, but does not appear on the screen for the respondent, so the data gets overwritten the second time they go through the survey.
Also, another thing I noticed was that the datestamp field is not updating correctly, and seems to be locked to the date of the first time the token was entered. For example, I have one completed survey with a submitdate of the 24th, but the datestamp and startdate both indicate the 16th. There are also other tokens which used to have a datestamp of 23rd that are now showing the datestamp as the 21st (the first time the token was used).