Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Validation equation

Validation equation il y a 1 an 3 jours #100927

  • Zimone85
  • Portrait de Zimone85
  • Hors ligne
  • Fresh Lemon
  • Messages : 5
  • Karma: 0
I have a question with two subquestions. The answer to these two sub-questions must be an exact numbers.

Suppose that the questions are:

Q001 How much is 2+2?

Q002 How much is 2+3?

I want participants not to be able to progress in the survey if they get at least one answer wrong.

I am writing in the Subquestion Validation Equation Q001 == "4" && Q002 == "5", but apparently it is not working.
Maybe I am getting the validation expression wrong?

Thanks in advance for your help
L'administrateur a désactivé l'accès en écriture pour le public.

Validation equation il y a 1 an 2 jours #100948

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4281
  • Remerciements reçus 807
  • Karma: 370
Try validating the whole question instead of sub-questions.

If your sub-question codes are Q001 and Q002, then this should work as a "Question validation equation"

self.sq_Q001 == 4 OR self.sq_Q002 == 5
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.157 secondes
Donation Image