A way to check the answers of other respondents

Más
2 años 7 meses antes - 2 años 7 meses antes #145875 por vkuzmin
I'm not sure, may be something like this already done in develop branch or may be i can do same things with new enforced quotas.
It's often necessary to know how many people gave a specific answer. Some answers should be unique (phone number for example), sometimes i need exact number (soft quotas. For example I need 100 men and 100 wimens, and at least 50 of them should love cats. To make my life easier As long as I do not get 50 positive responses I want to show a picture of a sad kitten and then stop to show it after that point).
2.5.* versions of Limesurvey cannot do that at all.
Right now I think to try to write a third-party php script which will work using jquerry and give the number of respondents in response to something like "332548X550X7179SQ001","Y".

May be someone did it already? Or maybe there is a plugin that can check the saved answers of other respondents? Something like {GETANSWERSCOUNT("Q1_SQ001","Y")} or {GETSGQANSWERSCOUNT("332548X550X7179SQ001","Y")} will be great!
For 1st example i need something like
(GETANSWERSCOUNT("PhoneNum",self)==0)
, for second one:
{(GETANSWERSCOUNT("Cats","Y)<50,"<img src=sadcat.jpg>","")}
Última Edición: 2 años 7 meses antes por vkuzmin.

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

LimeSurvey Partners
Más
2 años 7 meses antes #145912 por DenisChenu
Hi,

Currently:
- No included solution
- No plugin
- No events available for plugin

An event : (before|after)ValidateQuestion can do the trick i think : put e feature request.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

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

Más
2 años 7 meses antes #146045 por Joffm
Hi, vkuzmin,

in your case I would recommend:
Instead of waiting for something in LS (I understand you would like to have it now), just write a small php script, which does the queries and displays the results.

Easy done.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

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

Más
2 años 7 meses antes #146046 por DenisChenu
Oups, i see quota , and i think you want quota like something like this : allow only one 'phone number" etc .... see only 1.

For 2 , i have a plugin to do the job
framagit.org/SondagePro-LimeSurvey-plugi...lob/master/README.md

But not availbale currently for multiple choice.
If Cats is an answer to a single choice :
{if('[Q.nb.Cats]'<50,"<img src=sadcat.jpg>","")}

For the 1 : see only a javascript + ajax solution for example.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

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

Más
2 años 6 meses antes - 2 años 6 meses antes #146439 por vkuzmin
I'l make feature request later. I think i can do that myself. All i need is sql request like
$sql = "SELECT COUNT(*) FROM `lime_survey_".$sid"` where `lime_survey_".$sid"`.`".$SGQA"`='".$answer"'"
Última Edición: 2 años 6 meses antes por vkuzmin.

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