Welcome, Guest
Username: Password: Remember me

TOPIC: Remove a question from a survey

Remove a question from a survey 3 years 1 month ago #90124

  • dirend
  • dirend's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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?
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90131

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1590
  • Thank you received: 390
  • Karma: 102
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
Last Edit: 3 years 1 month ago by Ben_V.
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90135

  • dirend
  • dirend's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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! :)
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90178

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
You can set "condition equation" to 0 to remove a question (or use "allways hide this question attribute)

Denis
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90299

  • Sander
  • Sander's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Ben,

Is this also possible with a answer?

Regards,
Sander
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90314

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1590
  • Thank you received: 390
  • Karma: 102
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
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90332

  • Sander
  • Sander's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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?
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90338

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1590
  • Thank you received: 390
  • Karma: 102
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
Last Edit: 3 years 1 month ago by Ben_V.
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90345

  • Sander
  • Sander's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thanks for your reply.
But is this also possible with answers en not the heading ?
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90348

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1590
  • Thank you received: 390
  • Karma: 102
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
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90349

  • Sander
  • Sander's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thanks Ben!

The last option might be the solution.
But where can i find that separate table ?
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90352

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1590
  • Thank you received: 390
  • Karma: 102
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
Last Edit: 3 years 1 month ago by Ben_V.
The administrator has disabled public write access.

Remove a question from a survey 3 years 1 month ago #90353

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.180 seconds