How to constraint a response from the repeat group to the subsequent repeat group

Bonjour à tous,
J’aimerais demander de l’aide à mon problème suivant.
Dans la conception de mon questionnaire, j’ai plusieurs section mais je vais m’en tenir à deux.

Dans la première section, on demande l’âge et le sexe de tous les membres du ménage.

Dans la seconde section, on veut connaître les membres qui présentent un handicap, Ainsi, dans la première question, on demande s’il y a au moins une personne qui présente un handicap. Si Oui, on demande l’âge et le sexe de ces personnes aussi.

J’aimerais donc que si dans cette section, on entre un âge et un sexe qui n’ont pas simultanément de correspondance dans le listing, qu’un message d’erreur s’affiche que cette personne n’est pas dans le listing.

Merci par avance!

Maybe you could do it as outlined in the image below:

In the survey tab of your xlsform:

In the choices tab of your xlsform:

Image 2

Data entry screen as seen in Enketo:

Reference xlsform:

Household (Index) Repeat Example.xlsx (28.8 KB)

1 Like

Hello dear @Kal_Lam,
Thank you very much for your help.
Have a nice day!

1 Like

and in case we had more than one name how would we include all the names in the question?

1 Like

Have you tried filling out the sample xlsform shared? You should be able to get more names automatically in the Disability information based on the number of names you have entered in the Demographic details.

Dear Kal_Lam,

when I input more than one person like: 3 person with disability and 1 person without disability it comes in next section like:

input in 1 section:
person 1 = not disable
person 2 = disable
person 3= disable
person 4= disable

in Disability information section it shows like:
person 1 = types of disability (which is not correct)
person 2= types of disability
person 3= types of disability
person 4 = not showing

Please help me to sort out this type of question.

Dear Kal_Lam,

when I input more than one person like: 3 person with disability and 1 person without disability it comes in next section like:

input in 1 section:
person 1 = not disable
person 2 = disable
person 3= disable
person 4= disable

in Disability information section it shows like:
person 1 = types of disability (which is not correct)
person 2= types of disability
person 3= types of disability
person 4 = not showing

Please help me to sort out this type of question.

Hi,
Can you send the XLS form you have?

Stephane

here is my xls, please help
test of index repeat.xlsx (13.0 KB)