- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Remove a question from a survey
10 years 5 months ago #90124
by dirend
Remove a question from a survey was created by dirend
How can I remove a question i have added to a survey.
This might be a simple thing but i can't find how to do it.
Can anyone please help me?
This might be a simple thing but i can't find how to do it.
Can anyone please help me?
The topic has been locked.
10 years 5 months ago - 10 years 5 months ago #90131
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remove a question from a survey
Hello,
If you want to reimport them you have to manipulate the data (table or vv file) because you'll get an extra column (deleted question)
Ben
- If you have already responses, export them with the "vv file" export feature available in the result tab of the survey
- desactivate the survey
- select the question & remove it (red cross icon)
- reactivate
If you want to reimport them you have to manipulate the data (table or vv file) because you'll get an extra column (deleted question)
Ben
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 10 years 5 months ago by Ben_V.
The topic has been locked.
10 years 5 months ago #90135
by dirend
Replied by dirend on topic Remove a question from a survey
Thank you benitov!
I didn't realize that the survey was active in the time i wanted to delete a question.
Thank you for your help again!
I didn't realize that the survey was active in the time i wanted to delete a question.
Thank you for your help again!

The topic has been locked.
- DenisChenu
-
- Away
- LimeSurvey Community Team
-
Less
More
- Posts: 13145
- Thank you received: 2422
10 years 5 months ago #90178
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 Remove a question from a survey
You can set "condition equation" to 0 to remove a question (or use "allways hide this question attribute)
Denis
Denis
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.
10 years 5 months ago #90299
by Sander
Replied by Sander on topic Remove a question from a survey
Ben,
Is this also possible with a answer?
Regards,
Sander
Is this also possible with a answer?
Regards,
Sander
The topic has been locked.
10 years 5 months ago #90314
by Ben_V
Ben/
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remove a question from a survey
Sorry I don't understand what do you exactly want to know... how to delete an answer?Is this also possible with a answer?
Ben/
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
10 years 5 months ago #90332
by Sander
Replied by Sander on topic Remove a question from a survey
No. I mean the following.
1. What is your age?
Choose one of the following, answers
A 0-10
B 10 to 20
C 20-30
D 30-40
E 40 +
-When a number of people to choose answer A
-After a while answer option A removed.
-What happens to the people who answer A then chose?
-How can I unhide these answers?
1. What is your age?
Choose one of the following, answers
A 0-10
B 10 to 20
C 20-30
D 30-40
E 40 +
-When a number of people to choose answer A
-After a while answer option A removed.
-What happens to the people who answer A then chose?
-How can I unhide these answers?
The topic has been locked.
10 years 5 months ago - 10 years 5 months ago #90338
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remove a question from a survey
If you have vv files, you can merge those files without any problem because answer options appears as a result (inside the table) and not as a row or column label.. In other words adding and removing answer options is not changing the table structure...
The problem is that the final data analysis for this question may be unclear if an answer option was not available during all the time.
/!\ If in addition of removing answer options you have canceled another question, remember that you have to edit (adapt) the first vv file, removing the corresponding column, because the 2 first lines (headings) of the vvfile have to be 100% similar to be marged & reimported. More info here .
Ben/
The problem is that the final data analysis for this question may be unclear if an answer option was not available during all the time.
/!\ If in addition of removing answer options you have canceled another question, remember that you have to edit (adapt) the first vv file, removing the corresponding column, because the 2 first lines (headings) of the vvfile have to be 100% similar to be marged & reimported. More info here .
Ben/
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 10 years 5 months ago by Ben_V.
The topic has been locked.
10 years 5 months ago #90345
by Sander
Replied by Sander on topic Remove a question from a survey
Thanks for your reply.
But is this also possible with answers en not the heading ?
But is this also possible with answers en not the heading ?
The topic has been locked.
10 years 5 months ago #90348
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remove a question from a survey
A proposed by Denis (see your other similar post), try to (re)add the answer option deleted before working on the results.
Remember that you don't have to desactivate your survey for this (because when you desactivate & reactivate a survey, a new answer table is created and old answers are stored in a separate table)
Another approach could be to let your answer in place and hide it using javascript....
Remember that you don't have to desactivate your survey for this (because when you desactivate & reactivate a survey, a new answer table is created and old answers are stored in a separate table)
Another approach could be to let your answer in place and hide it using javascript....
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
10 years 5 months ago #90349
by Sander
Replied by Sander on topic Remove a question from a survey
Thanks Ben!
The last option might be the solution.
But where can i find that separate table ?
The last option might be the solution.
But where can i find that separate table ?
The topic has been locked.
10 years 5 months ago - 10 years 5 months ago #90352
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Remove a question from a survey
For the last option (hide an answer option) you don't have to manage tables* only use javascript with a code similar than:
You have to look to the source code of your survey and adapt this snippet, with correct question type (radio, dropdown etc...) and IDs (search at the doc for SGQA code)
*Answer tables present in the database:
For current answers (active survey): "lime_survey_10000"
For old answers (includes date of desactivation): "lime_old_survey_10000_20121217110331"
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#javatbd14254X295X2205nc').hide(); }); </script>
*Answer tables present in the database:
For current answers (active survey): "lime_survey_10000"
For old answers (includes date of desactivation): "lime_old_survey_10000_20121217110331"
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 10 years 5 months ago by Ben_V.
The topic has been locked.