- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Équation de validation
- theomerend
-
Topic Author
- Offline
- New Member
-
Less
More
2 months 2 days ago #239674
by theomerend
Équation de validation was created by theomerend
Bonjour,
J'ai créé un questionnaire en ligne ayant pour objectif de valider des recommandations et ai utilisé des questions à choix unique avec commentaire.
J'aimerais que les participants donnent un score allant de 1 à 9 pour chaque recommandation et qu'ils indiquent un commentaire lorsque le score est inférieur à 7. J'aimerais donc rendre obligatoire le commentaire pour les scores 1 à 6.
J'ai vu qu'on pouvait indiquer une équation de validation mais je ne m'y connais absolument pas en code...
Quelqu'un pourrait-il m'aider à trouver la bonne équation ??
Je vous remercie d'avance,
Bonne journée
J'ai créé un questionnaire en ligne ayant pour objectif de valider des recommandations et ai utilisé des questions à choix unique avec commentaire.
J'aimerais que les participants donnent un score allant de 1 à 9 pour chaque recommandation et qu'ils indiquent un commentaire lorsque le score est inférieur à 7. J'aimerais donc rendre obligatoire le commentaire pour les scores 1 à 6.
J'ai vu qu'on pouvait indiquer une équation de validation mais je ne m'y connais absolument pas en code...
Quelqu'un pourrait-il m'aider à trouver la bonne équation ??
Je vous remercie d'avance,
Bonne journée
Please Log in to join the conversation.
2 months 2 days ago #239676
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Équation de validation
Please use English in this section of the forum.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- theomerend
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
2 months 2 days ago #239680
by theomerend
Replied by theomerend on topic Équation de validation
Hello,
I have created an online questionnaire with the objective of validating recommendations and have used single choice questions with comments.
I would like the participants to give a score from 1 to 9 for each recommendation and to indicate a comment when the score is lower than 7. So I would like to make commenting mandatory for scores 1-6.
I saw that you could indicate a validation equation but I don't know anything about code...
Could someone help me to find the right equation?
I thank you in advance,
Have a nice day
I have created an online questionnaire with the objective of validating recommendations and have used single choice questions with comments.
I would like the participants to give a score from 1 to 9 for each recommendation and to indicate a comment when the score is lower than 7. So I would like to make commenting mandatory for scores 1-6.
I saw that you could indicate a validation equation but I don't know anything about code...
Could someone help me to find the right equation?
I thank you in advance,
Have a nice day
Please Log in to join the conversation.
2 months 2 days ago #239688
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Équation de validation
Assuming, for example, you have a question code "Q1" and answer codes 1-9, the validation equattion would look something like this:
Sample survey attached:
Code:
is_empty(Q1) OR Q1 > 6 OR !is_empty(Q1_comment)
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
2 months 2 days ago #239691
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Équation de validation
A race I don't win very often.Tony was faster

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.