Skip to content
commcare nova

Choose existing records in a form

Offer cases available to the worker as single-choice lists or checklists, with filters that follow the form's answers.

A form can offer existing records as answer choices. A clinic question can list available clinics; an attendance checklist can show the members of the selected clinic. Each answer saves the record's unique ID, so two people with the same name remain separate choices.

Set up the choices

In a single-choice or multiple-choice question, Cases available to the worker is a choice source alongside a typed list and a Project data table. Choose the record type and the property people will read as its label. Record name is the starting label.

Nova starts a new case source with an open-record rule. You can change that rule or choose Offer all available records to include every available record of the type, including closed records still held on the device.

Changing the choice source opens a staged configuration. Applying it saves the whole source together; Cancel keeps the question's current source.

Order of the choices lets you pick a record property. Choices follow the property’s saved text, so “10” comes before “2”. Choices with the same value keep their device order.

Narrow the list

Filters can use the candidate record's properties and relationships, worker information, and earlier answers in this form. In a repeating section, an answer can come from the same row or an enclosing row.

A form that opens on one selected record can also use that record and its ancestors. For example, Children of the selected record limits a member list to children of the selected clinic. A survey or registration form can use an earlier clinic answer instead.

When an earlier answer changes, Preview updates the list and clears selections that are no longer offered. Record labels keep their saved wording in every app language; they are data rather than translated question text.

Which records are available

A filter can also use Source row position to ask for the candidate’s place in the source, starting at 1. For example, position() < 3 keeps the first two available cases of the chosen type. The choice order you select applies after the filter. Use a property condition when the same records must qualify regardless of which order the worker’s case data arrives in.

In a case or Project data table choice filter, Position source can also refer to a question outside a repeat. The question has position 0 even when its answer is blank. This keeps imported filters that refer to that question's position.

Choices use the cases already available to the worker. A filter narrows that set; it does not fetch additional cases or change access. If location-based sharing delivers one clinic, an all-clinics question still offers only that clinic.

Preview uses its captured worker case snapshot, and exported forms read the device's case database. Testing with a representative worker and location assignment shows what that worker can actually choose.

Choose All available cases on a single-select question to let the worker pick from their whole restored case database. Choices show case names and save exact case IDs. Choose Open cases only or Closed cases only to filter by status. To narrow the choices by a property shared across different case types, enter the property name and the exact stored value, then apply the filter. To offer cases that match either of two values, enter another stored value. Use Other property if the second value belongs to a different property. Choose Both values to require two different properties to match their stored values. All available cases can include a retained closed case or the worker’s own case. A later case change checks the case against the type the change declares.

CommCare HQ's form designer also needs the Lookup Tables privilege to edit these dynamic choices, even though the choices come from cases rather than a data table.

Save attendance for existing members

You can ask Nova for one checklist that updates each selected member. The workflow uses case changes to update existing records. Choosing members alone does not create or update them.

For attendance, Nova can retain a roster when the form opens and check each member against the final checklist at submission. Returning to the checklist and clearing a member then leaves that member unchanged. This matters because repeating rows remain once created, even when the answer that created them later becomes smaller.

Open one form from several entries

Use Add form → Open an existing form to give a form another place in the app. Choose the form whose questions and record changes you want to share. The menu that holds the original form and the menu that offers another entry both need form-specific opening choices or other advanced form settings. To set a form’s choices explicitly, open Case changes → Cases this form uses → Set choices on this form. Your existing choices stay in their current order.

Each entry can have its own name, icon, opening choices, finish button and destination after submission. Open shared questions takes you to the original form. A change there reaches every entry that opens it. Whether an entry asks for the device location follows the original form too, so set it there.

Cases this form uses shows the records in the order the worker will supply them. You can choose a different list for a shared choice, add another choice, or leave out one that the questions and record changes do not use. Restore a shared choice brings back a choice you left out. You can give each entry a Preview run to follow its own route through the same questions.

If an entry should open a different form, choose it under Form this entry opens. The entry takes the new form’s opening choices, followed by its own extra choices. It keeps its calculated values and adds the ones the new form supplies.