# \[ODK2\] Repeat questions

**URL:** <https://forum.odk-x.org/t/odk2-repeat-questions/353>\
**Category:** Support\
**Created:** [September 10, 2018, 1:40pm UTC](https://forum.odk-x.org/t/odk2-repeat-questions/353 "2018-09-10T13:40:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [September 11, 2018, 12:19am UTC](https://forum.odk-x.org/t/odk2-repeat-questions/353/5 "2018-09-11T00:19:59Z")

</div>

Dear Karim,

If you want to repeat a set of questions with ODK2 (for example, ask each household member their name and age), you will basically design two surveys, one the “main” (household) form and one the “subform” (individuals). You link them with a “query” that uses linking variable(s), for example, the household id.

The documentation for queries is here: [Using ODK-X XLSX Converter — ODK-X Docs](https://docs.opendatakit.org/odk2/xlsx-converter-using/?highlight=subform#using-queries)

And we did an example in these training materials:

> [@Community contributions to upcoming ODK 2.0 documentation refresh](https://forum.odk-x.org/t/community-contributions-to-upcoming-odk-2-0-documentation-refresh/276/6):
>
> Hi Everyone! Finished revising the second batch of ODK 2.0 materials from our training. This includes a series of hands on exercises in the slides with learning programming in ODK, so I am including here both the slides and the “solutions” to the exercises. These go AFTER the first set of slides in my earlier post. The materials cover the basics of setting up your first form (08), the basics of workbook structure including different types of questions, skip patterns, grouping questions, etc. (…

The 10\_ slide deck, part c. (solutions are online there as well).

Hope that helps!

Best,  
Caroline

---

_[View the full topic](https://forum.odk-x.org/t/odk2-repeat-questions/353)._
