- Posts: 168
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Saving changes after reanswering?
- ymca
- Topic Author
- Offline
- Elite Member
Less
More
6 years 6 months ago #158921
by ymca
LS Version 4.2+
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3964
6 years 6 months ago #158934
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Saving changes after reanswering?
Hi, ymca,
as it is described in the manual:
And then you have a new survey - with the "old" answers of the respondents
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"
And this small program you call - let's say - each night with a cronjob.
Regards
Joffm
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
What do you mean by that? That each respondent can answer again after one month?After a month he will be able to automatically change his answers.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
6 years 6 months ago #158939
by DenisChenu
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.
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.
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.