- Messages : 276
- Remerciements reçus 20
- Forum
- English support forums
- Can I do this with LimeSurvey?
- How to validation two questions have same answer?
How to validation two questions have same answer?
- blocka
-
Auteur du sujet
- Hors Ligne
- Gold Lime
-
Réduire
Plus d'informations
il y a 5 mois 4 semaines #185442
par blocka
How to validation two questions have same answer? a été créé par blocka
As a simplied example of what I need to do, I ask the question:
Q1: Please indicate your age [numeric input]:
Q2: Please re-enter your age to verify [numeric input}:
I don't want the user to be able to advance to Q3 if the answer to Q1 and Q2 are different.
I see there is the question validation field -- but I gather this only allows for regular expression comparisions, but I need to just confirm that Q1 = Q2.
How can I do this?
Q1: Please indicate your age [numeric input]:
Q2: Please re-enter your age to verify [numeric input}:
I don't want the user to be able to advance to Q3 if the answer to Q1 and Q2 are different.
I see there is the question validation field -- but I gather this only allows for regular expression comparisions, but I need to just confirm that Q1 = Q2.
How can I do this?
Connexion ou Créer un compte pour participer à la conversation.
- Joffm
-
- Hors Ligne
- LimeSurvey Community Team
-
Réduire
Plus d'informations
- Messages : 5652
- Karma: 43
- Remerciements reçus 1072
il y a 5 mois 4 semaines #185444
par Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Réponse de Joffm sur le sujet How to validation two questions have same answer?
Hi, blocka,
Have a look at the Demo surveys about this.
Your example:
(is_empty(Q2)) OR (Q1==Q2)
Joffm
What makes you think that?but I gather this only allows for regular expression comparisions
Have a look at the Demo surveys about this.
Your example:
(is_empty(Q2)) OR (Q1==Q2)
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Connexion ou Créer un compte pour participer à la conversation.
- blocka
-
Auteur du sujet
- Hors Ligne
- Gold Lime
-
Réduire
Plus d'informations
- Messages : 276
- Remerciements reçus 20
il y a 5 mois 4 semaines #185449
par blocka
Réponse de blocka sur le sujet How to validation two questions have same answer?
Thanks! I tried that, and I've attached my sample survey where I've been trying to do this, and it doesn't work on build 3.17.5+190604
Connexion ou Créer un compte pour participer à la conversation.
- blocka
-
Auteur du sujet
- Hors Ligne
- Gold Lime
-
Réduire
Plus d'informations
- Messages : 276
- Remerciements reçus 20
il y a 5 mois 4 semaines #185455
par blocka
Réponse de blocka sur le sujet How to validation two questions have same answer?
Pièces jointes :
Connexion ou Créer un compte pour participer à la conversation.