Count selected options in several questions to validate the last question

Más
2 meses 4 días antes #184554 por fishfree
3 multiple choice questions are in the same group, question codes are : youths(4 options), leaders(3 options), others(7 options), I want to validate if the count of selected options in the 3 questions greater than or equal to 5. So in the last question, i.e. others, I fill in the "Question validation equation" as below:
(1) and (count(youth_SQ001.NAOK, youth_SQ002.NAOK, youth_SQ003.NAOK, youth_SQ004.NAOK, leaders_SQ001.NAOK, leaders_SQ002.NAOK, leaders_SQ003.NAOK, others_SQ001.NAOK, others_SQ002.NAOK, others_SQ003.NAOK, others_SQ004.NAOK, others_SQ005.NAOK, others_SQ006.NAOK, others_SQ007.NAOK) <= (5))

But it didn't work. No validation triggered against my custom logic.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

LimeSurvey Partners
Más
2 meses 4 días antes #184559 por jelo
You should state what version of LimeSurvey you use and provide an lss-export of just these questions you want to discuss.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
El siguiente usuario dijo gracias: DenisChenu

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
2 meses 3 días antes #184568 por Joffm
There is nearly the same question in the German part.

(1) and (count(youth_SQ001.NAOK, youth_SQ002.NAOK, youth_SQ003.NAOK, youth_SQ004.NAOK, leaders_SQ001.NAOK, leaders_SQ002.NAOK, leaders_SQ003.NAOK, others_SQ001.NAOK, others_SQ002.NAOK, others_SQ003.NAOK, others_SQ004.NAOK, others_SQ005.NAOK, others_SQ006.NAOK, others_SQ007.NAOK) <= (5))
This looks a bit strange. Did you enter exactly this?
Seems to be something of the logic file, but not everything.


sum(count(that.youth),count(that.leaders),count(that.others))<6
works (from 2.06 - 3.17.3)

Example with max. 4 answers:

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Adjuntos:
El siguiente usuario dijo gracias: fishfree

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
2 meses 3 días antes #184595 por fishfree
Thank you for perfectly solving my problem! I mistook exactly inputting that expression according the logic file containing minimum validation in other fields.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
2 meses 3 días antes #184598 por fishfree
Sorry, I find it not working as expected. In which question do you input the validation expression?

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

¡Comenzar ahora!

Simplemente cree una cuenta y comience a usar LimeSurvey hoy mismo.

Registrarse ahora
¡Únase a nuestro boletín informativo!

Iniciar sesión