Bug? Multiple numerical input w/ sub-question equation validation + array filter

More
5 years 3 weeks ago #87461 by spacejanitor
spacejanitor replied the topic: Bug? Multiple numerical input w/ sub-question equation validation + array filter
Here is the link to the bug report where I have uploaded a sample survey for LS2.

bugs.limesurvey.org/view.php?id=6787

I'm a call centre and market research technology consultant, lead/sample provider, and panel broker.

I'm also the co-founder and former IT Director of Winning Research Ltd. - LimeSurvey helped the company become a multi-million dollar company within just a few years!

Please Log in to join the conversation.

More
5 years 3 weeks ago #87464 by TMSWhite
TMSWhite replied the topic: Bug? Multiple numerical input w/ sub-question equation validation + array filter
Whole question validation should be
Q2_1.NAOK > Q1_1.NAOK && Q2_2.NAOK > Q1_2.NAOK && ...

Please Log in to join the conversation.

More
5 years 3 weeks ago #87466 by spacejanitor
spacejanitor replied the topic: Bug? Multiple numerical input w/ sub-question equation validation + array filter
Thanks TMSWhite, I check the documentation and try this again.

I'm having to re-learn a lot of things as my previous production version was before the introduction of EM and a lot of other features... but of course I can see this being much more powerful now.

I'm a call centre and market research technology consultant, lead/sample provider, and panel broker.

I'm also the co-founder and former IT Director of Winning Research Ltd. - LimeSurvey helped the company become a multi-million dollar company within just a few years!

Please Log in to join the conversation.

More
5 years 3 weeks ago - 5 years 3 weeks ago #87467 by spacejanitor
spacejanitor replied the topic: Bug? Multiple numerical input w/ sub-question equation validation + array filter

TMSWhite wrote: Whole question validation should be

Q2_1.NAOK > Q1_1.NAOK && Q2_2.NAOK > Q1_2.NAOK && ...


You were absolutely right... this suffix did the trick.

However, the tip text doesn't seem to ever change. It always displays 'Good' no matter the input, either in purple, red, or green. Any idea why that could be?

Here's my question validation equation:
(this.NAOK/ 3) == floor(this.NAOK/3)

Here's my subquestion validation tip:
{if(!((this.NAOK/ 3) == floor(this.NAOK/3)),'Good','Bad')}

I'm a call centre and market research technology consultant, lead/sample provider, and panel broker.

I'm also the co-founder and former IT Director of Winning Research Ltd. - LimeSurvey helped the company become a multi-million dollar company within just a few years!
Last Edit: 5 years 3 weeks ago by spacejanitor.

Please Log in to join the conversation.

More
5 years 3 weeks ago - 5 years 3 weeks ago #87468 by spacejanitor
spacejanitor replied the topic: Bug? Multiple numerical input w/ sub-question equation validation + array filter

TMSWhite wrote: Whole question validation should be

Q2_1.NAOK > Q1_1.NAOK && Q2_2.NAOK > Q1_2.NAOK && ...


Sorry to keep re-replying here. It seems that even with the NAOK suffix and the syntax above, it's not letting me proceed unless ALL options in the array filter are selected. All highlighting is working fine, however.

So it appears that EM is trying to evaluate ALL the options regardless of whether or not they were array filtered, making it impossible to proceed if certain options were not selected.

How do we assess ONLY those options that actually appear to the user (ie, were NOT filtered out by the array filter)? The question contains all of those codes, yes, but because of array filter, it's possible that not all of them are able to ever be selected which seems to break EM's logic unless there's some other way to identify those unselected ones that I'm missing.

Here is my code:
(Q3_A.NAOK > Q2_A.NAOK) && (Q3_B.NAOK > Q2_B.NAOK) && (Q3_C.NAOK > Q2_C.NAOK)

I have tried this with .value, and .code as well. Maybe I'm misunderstanding the term in this context?

I've also attached the survey file.

I'm a call centre and market research technology consultant, lead/sample provider, and panel broker.

I'm also the co-founder and former IT Director of Winning Research Ltd. - LimeSurvey helped the company become a multi-million dollar company within just a few years!
Attachments:
Last Edit: 5 years 3 weeks ago by spacejanitor.

Please Log in to join the conversation.

More
5 years 4 days ago #88276 by jelo
jelo replied the topic: Aw: Re: Bug? Multiple numerical input w/ sub-question equation validation + arra
When setting a multiple numerical input mandatory every
cell has to be answered even when using the option "Value range allows missing" = yes with
Equals sum value = 100.

Is this a bug or is the bug sitting at the keyboard?

Please Log in to join the conversation.

More
5 years 4 days ago #88278 by TMSWhite
TMSWhite replied the topic: Aw: Re: Bug? Multiple numerical input w/ sub-question equation validation + arra
Not a bug. Since mandatory must answer all parts. Value range allows missing is for when have min or max value constraints.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!