Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Saving changes after reanswering?

  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 6 months ago #158921 by ymca
Saving changes after reanswering? was created by ymca
Hi,

When enabling users resubmitting their answers, can LimeSurvey save each iteration of the answers?

Let's say the user has 10 questions that he answeres.
After a month he will be able to automatically change his answers.
If he chooses to only change the answers to 3 questions of the total 10.
Can it be done?
Will the "Iterate_survey" solve this problem?

manual.limesurvey.org/Iterate_survey

Cheers,
Ymca

LS Version 4.2+
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #158934 by Joffm
Replied by Joffm on topic Saving changes after reanswering?
Hi, ymca,

as it is described in the manual:

Export your responses so that you'll be able to compare them to the new ones


And then you have a new survey - with the "old" answers of the respondents

After a month he will be able to automatically change his answers.

What do you mean by that? That each respondent can answer again after one month?
Respondent 1 answered on the 23rd of april, can answer again on 23rd of may, and
Respondent 2 answered on the 28rd of april, can answer again on 28rd of may?

If you read the manual carefully you know that this is not possible out of the box.

If you have acces to the database you ca create a small script in php or other language, which downloads the results of the respondents who answered a month ago and does the same as the "iterate survey"

Reset of all tokens status to "not used",
Reset of all responses status to "not submitted".


And this small program you call - let's say - each night with a cronjob.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #158939 by DenisChenu
Replied by DenisChenu on topic Saving changes after reanswering?
There are some solution using Expression Manager + hidden question + Equation question type.

Example for 1 question (for the name)
1. Create 3 question : NameAsk,Name and ValuesSet
2. NameAsk : short text question type : relevance is_empty(Name.NAOK)
3. Name : short text question type/hidden
4. ValuesSet : Equation + hidden . Equation is {Name=if(is_empty(Name.NAOK),NameAsk.shown,Name.NAOK)}

I didn't Equation for Name, because i think it's more clear when export, and you can use different question type. ValuesSet can set different value to diffeent question with the same logic.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose