View Issue Details

IDProjectCategoryView StatusLast Update
17330Bug reportsQuestion editorpublic2021-06-14 17:03
Reportermarcgold Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.25.20 
Summary17330: Ranking Question Issue
DescriptionWhen setting max number of answers on a Ranking questions and setting the question to mandatory you cannot proceed.

Error, You have to rank all options.
Steps To ReproduceCreate a Mandatory Ranking Question
Set Max number of answers to 3 (or anything you want)
Add more than the Max number of options.

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 3.27.0+210525
I will donate to the project if issue is resolvedNo
Browserany
Database & DB-Versionn/a
Server OS (if known)Centos 8
Webserver software & version (if known)
PHP Version7.3

Activities

gabrieljenik

gabrieljenik

2021-05-31 15:46

manager   ~64678

How should the Ranking question behave?
What does it mean a ranking question to be mandatory?
Does it mean that all of the options need to be ranked?

Then that number of options to be ranked can be updated using max?

Am I right?
marcgold

marcgold

2021-06-01 10:11

reporter   ~64683

Last edited: 2021-06-08 23:07

Hi Gabriel

Thanks for picking this up. IMHO a mandatory question is one that "Must" receive a response in order to proceed. However I believe that any conditions / sub options that are also set need to be respected.

For the purposes of the example it is assumed there are 4+ SubQuestions in the Ranking Question:

So for instance, in the ranking question that is mandatory and has the MIN (blank) AND MAX 3 answers then the behaviour should be:
* 0 Ranked: Mandatory Condition Not Met - Do Not Continue.
* 1 - 3 Ranked: Mandatory Condition Satisfied, MIN 0 & MAX 3 Condition met - OK to Continue

However in the event that MIN == 3 & MAX == 3 then user must rank 3 SQ's to continue.

To me this is logical. However currently if you set a MAX value less than the total number of SQ's and Mandatory is on then it is not possible to complete the ranking question. Hence you have to turn Mandatory off which means you risk a question being skipped.

I hope that all makes sense, but reply if anything is not clear.

Thanks Marc
gabrieljenik

gabrieljenik

2021-06-01 14:53

manager   ~64688

Last edited: 2021-06-08 23:07

Yes, I think the issue here is that mandatory is making all SQ to be ranked, while it should be, at least 1.
Doing it just like that seems a strong thing to change, as per backward compatibility.

So, I would do,
If mandatory is set and no min nor max, I wouldn't update the behaviour (prior compatibility)
If mandatory is set and min or max, mandatory would mean at least 1 option ranked.
@c_schmitz, what do you think about this?
marcgold

marcgold

2021-06-01 20:02

reporter   ~64697

Last edited: 2021-06-08 23:07

That would work assuming it didn't interfere with the options.
but as a purest it would make send to code around the conditions
marcgold

marcgold

2021-06-01 20:35

reporter   ~64699

Last edited: 2021-06-08 23:07

Let me rephrase that last comment.

That would work assuming it didn't interfere with the options.
but as a purest it would make sense to code around the options (MIN / MAX) conditions

But I suppose, if Mandatory was set and that condition was satisfied by selecting one choice, if the option Min 3 was set then it would trigger the error condition around the option.
gabrieljenik

gabrieljenik

2021-06-07 20:49

manager   ~64774

Last edited: 2021-06-08 23:07

@c_schmitz, what do you think about this?
ollehar

ollehar

2021-06-09 11:54

administrator   ~64792

I agree to the concept of making a smaller change, to not break BC.
ollehar

ollehar

2021-06-09 11:55

administrator   ~64793

Maybe Fredrik has an opinion too? Will ping him.
gabrieljenik

gabrieljenik

2021-06-14 17:03

manager   ~64896

@f_funke ?
ollehar

ollehar

2021-06-14 17:03

administrator   ~64897

Fredrik is on vacation this week.

Issue History

Date Modified Username Field Change
2021-05-27 18:35 marcgold New Issue
2021-05-28 15:36 gabrieljenik Assigned To => gabrieljenik
2021-05-28 15:36 gabrieljenik Status new => assigned
2021-05-28 15:38 gabrieljenik Assigned To gabrieljenik =>
2021-05-28 15:38 gabrieljenik Assigned To => gabrieljenik
2021-05-31 15:46 gabrieljenik Note Added: 64678
2021-06-01 10:11 marcgold Note Added: 64683
2021-06-01 14:53 gabrieljenik Note Added: 64688
2021-06-01 20:02 marcgold Note Added: 64697
2021-06-01 20:35 marcgold Note Added: 64699
2021-06-07 20:49 gabrieljenik Note Added: 64774
2021-06-09 11:54 ollehar Note Added: 64792
2021-06-09 11:55 ollehar Note Added: 64793
2021-06-14 17:03 gabrieljenik Note Added: 64896
2021-06-14 17:03 ollehar Note Added: 64897