Saving changes after reanswering?

More
4 weeks 17 hours ago #158921 by ymca
ymca created the topic: Saving changes after reanswering?
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

Please Log in to join the conversation.

More
3 weeks 6 days ago #158934 by Joffm
Joffm replied the 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

Please Log in to join the conversation.

More
3 weeks 6 days ago #158939 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now