Parent-Child Forms (or sub forms)

Hi all,

I'm working on a two-part form:

  1. An enrollment form
  2. A results form (needs to populate in the name, age, sex, and village from the enrollment form).

The issue is that I can’t use entities because the time between form submissions is only about 10 minutes, and the teams will be working offline without internet or cell service.

I've come across some discussions about sub-forms and queries, which seem to be a potential solution. However, the templates I found appear to be outdated and no longer compatible with ODK Central.

My question: Is it currently possible to create sub-forms using the latest ODK Central XLSForm template? If so, what’s the best approach to make the results form reference data from the enrollment form in an offline setting?

Any guidance or updated examples would be greatly appreciated!

Thanks!

1 Like

As of Central v2024.3 and Collect v2024.3, Entities can be created and updated offline! This doesn't require any updates to existing Entities forms -- if your server and Collect are both updated, you should see that your forms that create Entities start doing so offline.

If you're looking to get started with Entities, we have documentation here and here.

Apologies for the confusion there! ODK-X is a separate system with a different way of defining forms.

1 Like