Remove a question from a survey

More
4 years 5 months ago #90124 by dirend
dirend created the topic: Remove a question from a survey
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?

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #90131 by Ben_V
Ben_V replied the topic: Remove a question from a survey
Hello,
  1. If you have already responses, export them with the "vv file" export feature available in the result tab of the survey
  2. desactivate the survey
  3. select the question & remove it (red cross icon)
  4. reactivate
Your old answers will be automatically saved in a separate table and you will start with a fresh empty one...
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: 4 years 5 months ago by Ben_V.

Please Log in to join the conversation.

More
4 years 5 months ago #90135 by dirend
dirend replied the 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! :)

Please Log in to join the conversation.

More
4 years 5 months ago #90178 by DenisChenu
DenisChenu replied the 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

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.

More
4 years 5 months ago #90299 by Sander
Sander replied the topic: Remove a question from a survey
Ben,

Is this also possible with a answer?

Regards,
Sander

Please Log in to join the conversation.

More
4 years 5 months ago #90314 by Ben_V
Ben_V replied the topic: Remove a question from a survey

Is this also possible with a answer?

Sorry I don't understand what do you exactly want to know... how to delete an 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)

Please Log in to join the conversation.

More
4 years 5 months ago #90332 by Sander
Sander replied the 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?

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #90338 by Ben_V
Ben_V replied the 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/

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: 4 years 5 months ago by Ben_V.

Please Log in to join the conversation.

More
4 years 5 months ago #90345 by Sander
Sander replied the topic: Remove a question from a survey
Thanks for your reply.
But is this also possible with answers en not the heading ?

Please Log in to join the conversation.

More
4 years 5 months ago #90348 by Ben_V
Ben_V replied the 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....

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)

Please Log in to join the conversation.

More
4 years 5 months ago #90349 by Sander
Sander replied the topic: Remove a question from a survey
Thanks Ben!

The last option might be the solution.
But where can i find that separate table ?

Please Log in to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #90352 by Ben_V
Ben_V replied the 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:
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#javatbd14254X295X2205nc').hide();	
	});
</script>
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"

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: 4 years 5 months ago by Ben_V.

Please Log in to join the conversation.

More
4 years 5 months ago #90353 by DenisChenu
DenisChenu replied the topic: Remove a question from a survey
You can replace the answer by:

<span class="hide">Old answer</span>

The user with css activated don't see the answers, but when exporting it's OK.

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 (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