View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
04057Bug reportsSurvey takingpublic2010-01-27 22:46
Reportersmeier6 Assigned Tolemeur  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.87+ 
Summary04057: List question - default value after previous button selected
Description

Imagine that you have a survey with multiple groups on multiple pages. On some pages you have list type questions. Now you activate the questionary and you try it out.
First you answer all questions on page 1 and then you continue with page. Now if you want to go back to page 1 to change an answer, all list questions are selected with default value. This problem occurs since at least version 1.86.

Additional Information

This issue occurs with all templates, not only with our own ones.

To reproduce the problem, see example survey attached.

TagsNo tags attached.
Attached Files
limesurvey_survey_82384.csv (10,086 bytes)   
# LimeSurvey Survey Dump
# DBVersion 142
# This is a dumped survey from the LimeSurvey Script
# http://www.limesurvey.org/
# Do not change this header!

#
# SURVEYS TABLE
#
"sid","owner_id","admin","active","expires","startdate","adminemail","private","faxto","format","template","language","additional_languages","datestamp","usecookie","notification","allowregister","allowsave","autonumber_start","autoredirect","allowprev","printanswers","ipaddr","refurl","datecreated","publicstatistics","publicgraphs","listpublic","htmlemail","tokenanswerspersistence","assessments","usecaptcha","usetokens","bounce_email","attributedescriptions","emailresponseto","tokenlength"
"82384","2","Sara Vadot","N","2010-01-27 00:00:00","2010-01-20 00:00:00","sara.vadot@unil.ch","Y","","G","basic","fr","","N","N","0","Y","Y","300","N","Y","N","N","N","2008-08-18","N","N","N","Y","N","N","D","Y","sara.vadot@unil.ch","","","15"

#
# GROUPS TABLE
#
"gid","sid","group_name","group_order","description","language"
"337","82384","<br />Evaluation des TP et exercices<br />","0","","fr"
"339","82384","<br />Evaluation des enseignements","1","","fr"

#
# QUESTIONS TABLE
#
"qid","sid","gid","type","title","question","preg","help","other","mandatory","lid","lid1","question_order","language"
"1704","82384","337","F","TP_1","<span style=""font-style:8px;color:#990000"">TP 1</span><br /><br />\nCes TP vous ont apporté un plus","","","N","N","2","0","0","fr"
"1705","82384","337","O","TP_12","Votre évaluation globale de ces TP et vos commentaires","","","N","N","0","0","1","fr"
"1706","82384","337","F","EX_1","<span style=""font-style:8px;color:#990000"">Exercices 1</span><br /><br />\nCes exercices vous ont apporté un plus","","","N","N","2","0","2","fr"
"1707","82384","337","O","EX_12","Votre évaluation globale de ces exercices et vos commentaires","","","N","N","0","0","3","fr"
"1708","82384","337","F","EX_2","<span style=""font-style:8px;color:#990000"">Exercices 2</span><br /><br />\nCes exercices vous ont apporté un plus","","","N","N","2","0","4","fr"
"1709","82384","337","O","EX_22","Votre évaluation globale de ces exercices et vos commentaires","","","N","N","0","0","5","fr"
"1710","82384","337","F","EX_3","<span style=""font-style:8px;color:#990000"">Exercices 3</span><br /><br />\nCes exercices vous ont apporté un plus","","","N","N","2","0","6","fr"
"1711","82384","337","O","EX_32","Votre évaluation globale de ces exercices et vos commentaires","","","N","N","0","0","7","fr"
"1713","82384","339","O","E2","<span style=""font-style:8px;color:#990000"">Ens 2</span><br /><br /> \nVotre évaluation globale et vos commentaires","","","N","N","0","0","1","fr"
"1714","82384","339","O","E1","<span style=""font-style:8px;color:#990000"">Ens 1</span><br /><br />\nVotre évaluation globale et vos commentaires","","","N","N","0","0","0","fr"
"1715","82384","339","O","E3","<span style=""font-style:8px;color:#990000"">Ens 3</span><br /><br /> \nVotre évaluation globale et vos commentaires","","","N","N","0","0","2","fr"

#
# ANSWERS TABLE
#
"qid","code","answer","default_value","assessment_value","sortorder","language"
"1704","TP","TP","N","0","1","fr"
"1705","1","Excellent","N","1","2","fr"
"1705","2","Bon","N","2","3","fr"
"1705","3","Suffisant","N","3","4","fr"
"1705","4","Insuffisant","N","4","5","fr"
"1705","5","Très insuffisant","N","5","6","fr"
"1705","NA","Non applicable","N","0","1","fr"
"1706","EX1","Exercices1","N","0","1","fr"
"1707","1","Excellent","N","0","2","fr"
"1707","2","Bon","N","0","3","fr"
"1707","3","Suffisant","N","0","4","fr"
"1707","4","Insuffisant","N","0","5","fr"
"1707","5","Très insuffisant","N","0","6","fr"
"1707","NA","Non applicable","N","0","1","fr"
"1708","EX2","Exercices 2","N","0","1","fr"
"1709","1","Excellent","N","0","2","fr"
"1709","2","Bon","N","0","3","fr"
"1709","3","Suffisant","N","0","4","fr"
"1709","4","Insuffisant","N","0","5","fr"
"1709","5","Très insuffisant","N","0","6","fr"
"1709","NA","Non applicable","N","0","1","fr"
"1710","EX3","Exercices 3","N","0","1","fr"
"1711","1","Excellent","N","0","2","fr"
"1711","2","Bon","N","0","3","fr"
"1711","3","Suffisant","N","0","4","fr"
"1711","4","Insuffisant","N","0","5","fr"
"1711","5","Très insuffisant","N","0","6","fr"
"1711","NA","Non applicable","N","0","1","fr"
"1713","1","Excellent","N","1","2","fr"
"1713","2","Bon","N","2","3","fr"
"1713","3","Suffisant","N","3","4","fr"
"1713","4","Insuffisant","N","4","5","fr"
"1713","5","Très insuffisant","N","5","6","fr"
"1713","6","Ne sais pas","N","6","1","fr"
"1714","1","Excellent","N","1","2","fr"
"1714","2","Bon","N","2","3","fr"
"1714","3","Suffisant","N","3","4","fr"
"1714","4","Insuffisant","N","4","5","fr"
"1714","5","Très insuffisant","N","5","6","fr"
"1714","6","Ne sais pas","N","6","1","fr"
"1715","1","Excellent","N","1","2","fr"
"1715","2","Bon","N","2","3","fr"
"1715","3","Suffisant","N","3","4","fr"
"1715","4","Insuffisant","N","4","5","fr"
"1715","5","Très insuffisant","N","5","6","fr"
"1715","6","Ne sais pas","N","6","1","fr"

#
# CONDITIONS TABLE
#

#
# LABELSETS TABLE
#
"lid","label_name","languages"
"2","Module-Lickert","fr"

#
# LABELS TABLE
#
"lid","code","title","sortorder","language","assessment_value"
"2","1","Non","4","fr","1"
"2","2","Plutôt non","3","fr","2"
"2","3","Plutôt oui","2","fr","3"
"2","4","Oui","1","fr","4"
"2","5","Non applicable","5","fr","5"

#
# QUESTION_ATTRIBUTES TABLE
#
"qaid","qid","attribute","value"
"9","1714","alphasort","0"
"10","1714","hide_tip","0"
"11","1714","hidden","0"
"12","1714","page_break","0"
"13","1714","public_statistics","0"
"14","1714","random_order","0"
"15","1714","scale_export","0"
"16","1713","alphasort","0"
"17","1713","hide_tip","0"
"18","1713","hidden","0"
"19","1713","page_break","0"
"20","1713","public_statistics","0"
"21","1713","random_order","0"
"22","1713","scale_export","0"
"23","1715","alphasort","0"
"24","1715","hide_tip","0"
"25","1715","hidden","0"
"26","1715","page_break","0"
"27","1715","public_statistics","0"
"28","1715","random_order","0"
"29","1715","scale_export","0"
"30","1704","answer_width",""
"31","1704","array_filter",""
"32","1704","array_filter_exclude",""
"33","1704","hidden","0"
"34","1704","page_break","0"
"35","1704","public_statistics","0"
"36","1704","random_order","0"
"37","1704","scale_export","0"
"38","1705","alphasort","0"
"39","1705","hide_tip","0"
"40","1705","hidden","0"
"41","1705","page_break","0"
"42","1705","public_statistics","0"
"43","1705","random_order","0"
"44","1705","scale_export","0"
"45","1706","answer_width",""
"46","1706","array_filter",""
"47","1706","array_filter_exclude",""
"48","1706","hidden","0"
"49","1706","page_break","0"
"50","1706","public_statistics","0"
"51","1706","random_order","0"
"52","1706","scale_export","0"
"53","1707","alphasort","0"
"54","1707","hide_tip","0"
"55","1707","hidden","0"
"56","1707","page_break","0"
"57","1707","public_statistics","0"
"58","1707","random_order","0"
"59","1707","scale_export","0"
"60","1708","answer_width",""
"61","1708","array_filter",""
"62","1708","array_filter_exclude",""
"63","1708","hidden","0"
"64","1708","page_break","0"
"65","1708","public_statistics","0"
"66","1708","random_order","0"
"67","1708","scale_export","0"
"68","1709","alphasort","0"
"69","1709","hide_tip","0"
"70","1709","hidden","0"
"71","1709","page_break","0"
"72","1709","public_statistics","0"
"73","1709","random_order","0"
"74","1709","scale_export","0"
"75","1710","answer_width",""
"76","1710","array_filter",""
"77","1710","array_filter_exclude",""
"78","1710","hidden","0"
"79","1710","page_break","0"
"80","1710","public_statistics","0"
"81","1710","random_order","0"
"82","1710","scale_export","0"
"83","1711","alphasort","0"
"84","1711","hide_tip","0"
"85","1711","hidden","0"
"86","1711","page_break","0"
"87","1711","public_statistics","0"
"88","1711","random_order","0"
"89","1711","scale_export","0"

#
# ASSESSMENTS TABLE
#

#
# SURVEYS_LANGUAGESETTINGS TABLE
#
"surveyls_survey_id","surveyls_language","surveyls_title","surveyls_description","surveyls_welcometext","surveyls_endtext","surveyls_url","surveyls_urldescription","surveyls_email_invite_subj","surveyls_email_invite","surveyls_email_remind_subj","surveyls_email_remind","surveyls_email_register_subj","surveyls_email_register","surveyls_email_confirm_subj","surveyls_email_confirm","surveyls_dateformat"
"82384","fr","Questionnaire - essai","","","","","","Invitation à participer à un questionnaire","Cher(e) {FIRSTNAME},<br /><br />Vous avez été invité à participer à un questionnaire.<br /><br />Celui-ci est intitulé :<br />""{SURVEYNAME}""<br /><br />""{SURVEYDESCRIPTION}""<br /><br />Pour participer, veuillez cliquer sur le lien ci-dessous.<br /><br />Cordialement,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Cliquez ici pour remplir ce questionnaire :<br />{SURVEYURL}","Rappel pour participer à un questionnaire","Cher(e) {FIRSTNAME},<br /><br />Vous avez été invité à participer à un questionnaire récemment.<br /><br />Nous avons pris en compte que vous n'avez pas encore complété le questionnaire, et nous vous rappelons que celui-ci est toujours disponible si vous souhaitez participer.<br /><br />Le questionnaire est intitulé :<br />""{SURVEYNAME}""<br /><br />""{SURVEYDESCRIPTION}""<br /><br />Pour participer, veuillez cliquer sur le lien ci-dessous.<br /><br />Cordialement,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Cliquez ici pour faire le questionnaire:<br />{SURVEYURL}","","","Confirmation de participation","Cher(e) {FIRSTNAME},<br /><br />Ce courriel vous confirme que vous avez complété le questionnaire intitulé {SURVEYNAME} et que votre réponse a été enregistrée. Merci pour votre participation.<br /><br />Si vous avez des questions à propos de ce courriel, veuillez contacter {ADMINNAME} sur {ADMINEMAIL}.<br /><br />Cordialement,<br /><br />{ADMINNAME}","1"

#
# QUOTA TABLE
#

#
# QUOTA_MEMBERS TABLE
#

#
# QUOTA_LANGUAGESETTINGS TABLE
#

limesurvey_survey_82384.csv (10,086 bytes)   
Bug heat10
Complete LimeSurvey version number (& build)8243
I will donate to the project if issue is resolved
Browser
Database type & version5.0.77-4.el5_4.1
Server OS (if known)Redhat Enterprise Linux 5
Webserver software & version (if known)Apache 2.2.3-31.el5_4.2
PHP VersionPHP 5.1.6-24.el5_4.5

Users monitoring this issue

smeier6

Activities

user372

2010-01-21 00:02

  ~10833

1) I can't reproduce the issue on my installation (=latest stable plus relase = LimeSurvey 1.87+ build 8278).

2) Can you reproduce the issue on my installation? I added a test token for you:
http://www.prandstetter.at/limesurvey/index.php?sid=82384&amp;lang=fr&amp;token=2

smeier6

smeier6

2010-01-21 08:41

reporter   ~10839

Thanks for your reply.

The survey you created doesn't show any list menu question. They are all replaced by checkboxes. Normally on page one you have 4 list menu questions with the following values: "Non applicable, Excellent, Bon, Suffisant, Insuffisant, Très insuffisant, Sans réponse". There should be no checkboxes.

user372

2010-01-21 08:50

  ~10840

Last edited: 2010-01-21 08:51

Very strange - I just imported your survey and activated it.

1) May you please post a link to a survey to your installation or at least a screenshot of how your survey looks live - just, that we are talking about the same thing - Thx!

2) How does your attached survey look like, if you import it to your installation?

smeier6

smeier6

2010-01-21 08:55

reporter   ~10841

I created a test token for you: https://wwwfbm.unil.ch/questionnaire/index.php?lang=fr&amp;sid=82384&amp;token=2

user372

2010-01-21 10:24

  ~10843

@ smeier6: How do you realize a question type like "List Dropdown with comment box"? ==> I have never seen this question type before ==> do you have a customized installation?

smeier6

smeier6

2010-01-21 11:02

reporter   ~10846

This is a normal future of Limesurvey: http://docs.limesurvey.org/tiki-index.php?page=Question+types#quot_quot_List_Dropdown

We use this kind of questions at least since 1.86. We didn't do any kind of customization, except for templates.

c_schmitz

c_schmitz

2010-01-21 11:38

administrator   ~10847

smeier6,

I guess you have set
$lwcdropdowns = 'L';
in config.php.

Can you tell us the exact values you put there?
As a first fix I recommend to switch that to 'R' (that is the default value).
Using radio items also allows for faster answering for your participants.

smeier6

smeier6

2010-01-21 12:40

reporter   ~10848

Thanks for your help.

You guessed right. There is the following setting: $lwcdropdowns = 'L';

For now I changed the value to 'R' but this isn't really a solution for us. For example, if you have a drop-down list with 20 values, the equivalent with radio buttons isn't very user-friendly. But at least the survey is usable now.

user372

2010-01-21 23:25

  ~10859

I CAN reproduce the issue, if I set "$lwcdropdowns = 'L';" in config.php with the attached survey.

Btw. I get the following notice in debug mode - perhaps thats the problem:
Notice: Undefined variable: check_ans in /home/.sites/962/site989/web/limesurvey/qanda.php on line 2698

lemeur

lemeur

2010-01-25 11:48

developer   ~10880

Good catch Matador, the issue was related to the notice.

Fixed in rev 8301.

Thanks for the report and goog investigation.

Issue History

Date Modified Username Field Change
2010-01-20 09:50 smeier6 New Issue
2010-01-20 09:50 smeier6 Status new => assigned
2010-01-20 09:50 smeier6 Assigned To => user372
2010-01-20 09:50 smeier6 File Added: limesurvey_survey_82384.csv
2010-01-20 09:50 smeier6 LimeSurvey build number => 8243
2010-01-20 09:50 smeier6 Database & DB-Version => 5.0.77-4.el5_4.1
2010-01-20 09:50 smeier6 Operating System (Server) => Redhat Enterprise Linux 5
2010-01-20 09:50 smeier6 Webserver => Apache 2.2.3-31.el5_4.2
2010-01-20 09:50 smeier6 PHP Version => PHP 5.1.6-24.el5_4.5
2010-01-20 09:50 smeier6 Issue Monitored: smeier6
2010-01-21 00:02 user372 Note Added: 10833
2010-01-21 00:02 user372 Status assigned => feedback
2010-01-21 08:41 smeier6 Note Added: 10839
2010-01-21 08:50 user372 Note Added: 10840
2010-01-21 08:51 user372 Note Edited: 10840
2010-01-21 08:55 smeier6 Note Added: 10841
2010-01-21 10:24 user372 Note Added: 10843
2010-01-21 10:26 user372 File Added: ListDropDown_with_CommentBox.png
2010-01-21 11:02 smeier6 Note Added: 10846
2010-01-21 11:38 c_schmitz Note Added: 10847
2010-01-21 12:40 smeier6 Note Added: 10848
2010-01-21 23:25 user372 Note Added: 10859
2010-01-21 23:29 user372 Status feedback => assigned
2010-01-21 23:29 user372 Assigned To user372 => lemeur
2010-01-25 11:48 lemeur Note Added: 10880
2010-01-25 11:48 lemeur Status assigned => resolved
2010-01-25 11:48 lemeur Fixed in Version => 1.87+
2010-01-25 11:48 lemeur Resolution open => fixed
2010-01-27 22:46 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking
2021-09-10 15:55 guest Bug heat 8 => 10