View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
07651Bug reportsExpression Managerpublic2013-03-09 16:37
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionnot fixable 
Product Version2.00+ 
Summary07651: Using the exclusive option at a multiple choice questions breaks equations
Description

When checking certain checkboxes at a multiple choice question using an equation like:
{if(belastung_FB_KB_Keine=="Y",0.1,
if(belastung_FB_KB_Leichte=="Y",0.5,
if(belastung_FB_KB_Schwere=="Y",0.75,0)))}

...the equation does not show any result if you apply the exclusive option to that question within the survey.

Steps To Reproduce
  1. Import the attached survey

  2. Run the survey. At the third question "zeit" ("Wie viel Zeit nimmt diese körperliche Beanspruchung pro Woche ein?" check any of the options. Notice that others are disabled due to the exclusive option.

  3. Check the third equation. It shows any empty value though the related expression (code "sc_bew_fc_zeit") includes a value for each answer option:
    {if(zeit_FB_KBZeit_10 == "Y", 5,
    if(zeit_FB_KBZeit_20 == "Y", 15,
    if(zeit_FB_KBZeit_40 == "Y", 30,
    if(zeit_FB_KBZeit_Mehr40 == "Y", 45, 0))))}

The equation return 0 correctly as long as no answer option is checked.

Additional Information

You can also check questions 1/2 which use a similar design and similar expressions but do NOT use the exclusive option.

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)130305
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Windows 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.18
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2013-03-09 16:37

administrator   ~24602

If you are using the exclusive option the related disabled subquestions become irrelevant. So you have to adjust your equation accordingly (using .NAOK ending).

In general you should rather use a List(Radio) question instead of making all answer options exclusive in a multiple choice.

Issue History

Date Modified Username Field Change
2013-03-09 15:18 Mazi New Issue
2013-03-09 15:18 Mazi Status new => assigned
2013-03-09 15:18 Mazi Assigned To => c_schmitz
2013-03-09 15:18 Mazi File Added: limesurvey_survey_235819-EM_MC_Problem.lss
2013-03-09 16:37 c_schmitz Note Added: 24602
2013-03-09 16:37 c_schmitz Status assigned => closed
2013-03-09 16:37 c_schmitz Resolution open => not fixable