How to validation two questions have same answer?

Plus d'informations
il y a 1 mois 1 semaine #185442 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?

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 1 mois 1 semaine #185444 par Joffm
Hi, blocka,

but I gather this only allows for regular expression comparisions

What makes you think that?
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.

Plus d'informations
il y a 1 mois 1 semaine #185449 par blocka
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
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 1 semaine #185455 par blocka
Ah, I see, this needs to be placed under the Logic tab for the question, like this:

Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!