View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
08631Bug reportsSurvey takingpublic2014-02-04 13:32
Reportermofog Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary08631: Array/Matrix question in dropdown presentation does not show "Please choose..." anymore
Description

Prior to build 140125 an array question in dropdown presentation would show "Please choose..." as the pre-selected item. Build 140125 introduced a different behavior, see bug 08512.

I think this is actually a step back due to following reasons:
1) The user is now given a default answer, that might bias his decision.
2) The dropdown presentation does not behave like the non-dropdown representation (as the latter one starts off with no pre-selected values).
3) The implementation might actually be faulty, as there should be a "selected" option (http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.6.1).

Steps To Reproduce
  • Create an array question.
  • Set "Use dropdown presentation" to yes in the advanced settings.
Additional Information

The attached screenshot shows the two different presentation modes of the same question.
The upper one has pre-selected options, while the lower one does not have pre-selected options.

If both presentations modes are used in the same survey, e.g., to accomodate a mobile and a desktop view, this might lead to biased answers from a scientific point of view.

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)140125
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysqld Ver 5.1.61-ndb-7.1.22-log for suse-linux-gnu on x86_64 (SUSE MySQL RPM)
Server OS (if known)OpenSuSE
Webserver software & version (if known)Apache/2.2.21 (Linux/SUSE)
PHP Version5.3.8

Relationships

related to 08512 closedc_schmitz Matrix question in dropdown presentation never shows "Please choose..." 

Users monitoring this issue

mfaber

Activities

mfaber

mfaber

2014-01-30 10:55

reporter   ~28277

I agree with mofog:
Answers should generally not be preselected, doesn't matter whether the question is mandatory or not. The old behaviour with "please choose" and validation if something is chosen for mandatory questions seems right to me.

DenisChenu

DenisChenu

2014-01-30 12:40

developer   ~28279

We add a No Answer for 'non mandatory' drop down list (if there are already an answer done (second time).

Then adding same for arry/dropdown seems OK.

Did you test the Arry dual scale (dropdown layout) ?

mofog

mofog

2014-01-30 13:14

reporter   ~28281

I'm afraid I forgot to mention that the questions have to be mandatory in my case.
However, "No answer" would not be appropriate here either.

The "Array dual scale" actually works fine, that means it shows "Please choose...".
I think I could use that as a workaround if I can figure out how to get rid of the second column.

mofog

mofog

2014-01-30 14:13

reporter   ~28282

Well, manipulating the dual scale array seemed a bit too venturous.
Instead, I kept the ordinary array, set it to mandatory, added a question "A0" entitled "Please choose..." and added the following code as "Question validation equasion":

((b24c_SQ001 != "A0") and (b24c_SQ002 != "A0") and [...] and (b24c_SQ010 != "A0"))

That seems to do the trick as long as there is no native "Please choose..." option.
The only downside is, that possibly missing fields are not highlighted after pressing "Next", so users have to find the "incorrect" answers by themselves.

DenisChenu

DenisChenu

2014-01-30 19:48

developer   ~28286

Oups, you mean the screen was made the first time we acced to survey ?

mofog

mofog

2014-01-31 10:28

reporter   ~28292

Yes, indeed. Both screenshots were taken in a "fresh" survey session (first time accessed).

c_schmitz

c_schmitz

2014-02-02 21:17

administrator   ~28403

mofog: I cannot reproduce this. Please attach a 1-question sample survey reproducing this.

c_schmitz

c_schmitz

2014-02-02 21:27

administrator   ~28404

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13819

c_schmitz

c_schmitz

2014-02-02 21:28

administrator   ~28405

Never mind, you forgot to mention that the question needs to be mandatory...

mofog

mofog

2014-02-03 08:46

reporter   ~28418

Yeah, I'm sorry for that. But great you got it fixed! Thanks.

c_schmitz

c_schmitz

2014-02-04 13:32

administrator   ~28508

Version 2.05+ Build 140204 released

Related Changesets

LimeSurvey: master b9323a6b

2014-02-02 20:28:18

c_schmitz

Details Diff
Fixed issue 08631: Array/matrix question in dropdown presentation does not show "Please choose..." anymore Affected Issues
08631
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2014-01-30 10:13 mofog New Issue
2014-01-30 10:13 mofog File Added: Bildschirmfoto-2014-01-30-um-10.07.21.png
2014-01-30 10:55 mfaber Note Added: 28277
2014-01-30 10:57 mfaber Issue Monitored: mfaber
2014-01-30 12:40 DenisChenu Note Added: 28279
2014-01-30 13:14 mofog Note Added: 28281
2014-01-30 14:13 mofog Note Added: 28282
2014-01-30 15:59 mfaber Relationship added related to 08512
2014-01-30 19:48 DenisChenu Note Added: 28286
2014-01-31 10:28 mofog Note Added: 28292
2014-01-31 13:25 c_schmitz Assigned To => c_schmitz
2014-01-31 13:25 c_schmitz Status new => assigned
2014-02-02 21:17 c_schmitz Note Added: 28403
2014-02-02 21:27 c_schmitz Changeset attached => LimeSurvey master b9323a6b
2014-02-02 21:27 c_schmitz Note Added: 28404
2014-02-02 21:27 c_schmitz Resolution open => fixed
2014-02-02 21:28 c_schmitz Note Added: 28405
2014-02-02 21:28 c_schmitz Status assigned => resolved
2014-02-02 21:28 c_schmitz Fixed in Version => 2.05+
2014-02-03 08:46 mofog Note Added: 28418
2014-02-04 13:32 c_schmitz Note Added: 28508
2014-02-04 13:32 c_schmitz Status resolved => closed
2021-08-02 20:00 guest Bug heat 8 => 10