Automatic configuration of a question

Bonjour à tous.
Je suis entrain de réaliser un questionnaire sous Kobotoolbox. Je suis actuellement sur une question où je veux que sa valeur soit remplie automatiquement en fonction des réponses précédentes. Pour être plus précis, la question , c’est “le chef de ménage est-il une femme âgée de 35 à 49 ans?” et a comme modalités “Oui” et “Non”.

Plutôt, il avait été demandé le sexe et l’âge du chef de ménage. Donc je veux que la réponse soit Oui ou Non en fonction des réponses données aux premières questions.

Comment je pourrais faire svp?

Merci

Hello @horeb_nahor and welcome to the community!

If google translation is correct :slight_smile: this might help you:

https://support.kobotoolbox.org/responses_inside_question.html

Best,

2 Likes

Welcome to the community, @horeb_nahor! Do you mean you wish to fill up the responses of the latter questions based on the selections of a previous questions?

1 Like

Thank you @hakan_cetinkaya :blush:
But it’s not exactly that.
The situation is that I want on of my questions be filled automatically given some previous answers (of other questions).

More specifically:
Q1- Gender of the head of household
1-Male
2-Female
Q2- Age of the head of household (numeric)

Q3- Is the head of household a woman between the ages of 18 and 49?
1- Yes
2- No

At the question Q3, I want that it fills automatically: Yes if Q1=2 and 2 is between 18 and 49, and No otherwise.

I’ll be very happy if you can give me a help😊

2 Likes

Thank you @Kal_Lam😊
Yes, it’s something like that

1 Like

@horeb_nahor, maybe you could do it as oultined in the image shared below:

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

Image 2

Data entry as seen in Enketo: when the condition is not satisfied

Data entry as seen in Enketo: when the condition is satisfied

Reference XLSForm:

Auto Select.xls (29.5 KB)

1 Like

It works. Thank you @Kal_Lam. You save me :innocent:

1 Like