Hi I have a question type Array (Numbers)
My problem:
- I don't know how many answers are shown
(I use the filter option)
- I don't know how many answers the user has to give
Example:
- I show him in a multiple choise question 40 answers
- he chooses X items
- I only show in the array those X items
BUT
if X is >= 5 then the should demand min 5 and max 5 answers and show numbers from 1 to 5
if X is < 5 there are other options.
My question, can I change the logic of the question during runtime via JS or are there possiblities to add conditions in the logic expressions?
I played around and tried to use expressions in the field maximum
So minimum is always one but maximum should be that logic:
if(count(that.effectYes.NAOK)>=5,5,count(that.effectYes.NAOK))
But all I get in the dropdowns is always 1 and 0
And in the overview of the questions, the logic expression looks like that - what looks to me like an error:
(check out the attachement)
Hi I good to know - this I also what I need but I need maximum number not answer.
As you know in array(number) I have dropdowns from min to max and I want to set the max.
And that doesn't work