View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
03241Bug reportsSurvey editingpublic2009-08-19 01:26
ReporterDenniz Assigned Tojcleeland  
PrioritynormalSeveritypartial_block 
Status closedResolutionwon't fix 
Product Version1.82 
Summary03241: Mandatory requirement not working on Array (Multi-flexbile) (Number) with Checkbox layout is 1
Description

Mandatory requirement not working on Array (Multi-flexbile) (Number) with Checkbox layout is 1.

It will be better to have the minimum and maximum answer attribute like a normal multiple options question.

TagsNo tags attached.
Attached Files
test_example.csv (5,392 bytes)
Bug heat8
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & versionMySQL 5.0.67
Server OS (if known)Linux
Webserver software & version (if known)http://take.qston.com/now/admin
PHP VersionPHP 5.2.8

Users monitoring this issue

There are no users monitoring this issue.

Activities

user372

2009-06-01 09:30

  ~08171

Please attach a small sample survey (survey structure as .csv-file), where we can reproduce the issue - Thx!

user372

2009-06-01 09:44

  ~08172

I can reproduce the issue.

@ c_schmitz: I get the following notices working on the latest development revision at the second page of the survey:
Notice: Undefined variable: mandatorys in /home/.sites/962/site989/web/limesurvey/qanda.php on line 386

Notice: Undefined variable: mandatoryfns in /home/.sites/962/site989/web/limesurvey/qanda.php on line 386

c_schmitz

c_schmitz

2009-06-02 01:14

administrator   ~08205

Jason, that's totally not my area of expertise. Can you take a look at it?

jcleeland

jcleeland

2009-06-07 19:21

reporter   ~08320

I'm working on this now... Denniz, could you clarify what you mean by "It will be better to have the minimum and maximum answer attribute like a normal multiple options question." ? I don't really understand that bit.

jcleeland

jcleeland

2009-06-07 20:04

reporter   ~08321

I've removed the error messages, but the mandatory issue is a real problem. When the question type was developed it wasn't intended to have a checkbox. That was added on over the top. The checkbox means that every option is always answered. Not ticking a box means that zero is chosen - which the mandatory checking system considers to be a response. Coding around this would be quite a bit of work, since it will involve writing an exception to the normal rules. This is something I'm a bit loath to do since the checkbox feature as an addon to the base functionality (which works fine).

Denniz

Denniz

2009-06-08 12:03

reporter   ~08331

Hi Jason,

What I meant was having a attribute to limit the selection of answer. Just like the normal multiple-choice question type, you allow us to set what is the minimum and maximum answers the user can select.

With the minimum/maximum answer setting, then this question will become mandatory indirectly.

For example, with the minimum answer =1 AND max answer = 1, it'll then behave like a Radio question type, and 1 answer MUST be selected.

If users allow respondents to select as many as possible, then they just need to set the minimum answer =1 AND maximum answer = the # of options/answers available in the multiple choices. And this question is still mandatory because at least 1 answer MUST be chosen.

I hope this clarifies a bit, please let me know if this is still ambiguous.

Thanks!
Denniz

jcleeland

jcleeland

2009-06-10 06:14

reporter   ~08373

The mult-flexi (numbers) question type was never meant to be used as a multiple options replacement. The example you've provided is a misuse of the question type.

It is supposed to allow for a grid of questions/answers like this:

For each of the following indicate:
| I Like It | I Don't Mind It | I Hate It |
Cows | | | |
Zebras | | | |
Horses | | | |
Dogs | | | |

If you only have the one column, then you should use the multiple options question type.

If you have this grid, where for each of the animals, you have three options, then how do you decide whether a mandatory conditions has been met?

Jason

Denniz

Denniz

2009-06-10 11:32

reporter   ~08378

Hi Jason,

Yeah, I'm aware that multi-flexi(num) is not meant to be used as multiple-option replacement. However, because only Array question can utilize Array-filter to filter answers selected in previous question, so i used it as a workaround to behave like a multiple-option question, with only 1 label in Array.

If multiple-option quesiton/radio-list can have the ability to use Array-filter, then it would be really great.

Thanks!
Denniz

c_schmitz

c_schmitz

2009-08-19 01:26

administrator   ~09169

Please file a feature request instead, then.

Issue History

Date Modified Username Field Change
2009-06-01 09:29 Denniz New Issue
2009-06-01 09:29 Denniz Status new => assigned
2009-06-01 09:29 Denniz Assigned To => user372
2009-06-01 09:29 Denniz Database & DB-Version => MySQL 5.0.67
2009-06-01 09:29 Denniz Operating System (Server) => Linux
2009-06-01 09:29 Denniz Webserver => http://take.qston.com/now/admin
2009-06-01 09:29 Denniz PHP Version => PHP 5.2.8
2009-06-01 09:30 user372 Note Added: 08171
2009-06-01 09:30 user372 Status assigned => feedback
2009-06-01 09:40 Denniz File Added: test_example.csv
2009-06-01 09:44 user372 Note Added: 08172
2009-06-01 09:44 user372 Status feedback => assigned
2009-06-01 09:44 user372 Assigned To user372 => c_schmitz
2009-06-02 01:08 c_schmitz Assigned To c_schmitz => jcleeland
2009-06-02 01:14 c_schmitz Note Added: 08205
2009-06-07 19:21 jcleeland Note Added: 08320
2009-06-07 20:04 jcleeland Note Added: 08321
2009-06-08 12:03 Denniz Note Added: 08331
2009-06-10 06:14 jcleeland Note Added: 08373
2009-06-10 11:32 Denniz Note Added: 08378
2009-08-19 01:26 c_schmitz Note Added: 09169
2009-08-19 01:26 c_schmitz Status assigned => resolved
2009-08-19 01:26 c_schmitz Resolution open => won't fix
2009-08-19 01:26 c_schmitz Status resolved => closed
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing