Skip to content
Features Pricing Docs Contact Sign In Get Started
Language

Preloaded answers

Open a form already filled with what you know about each respondent: last round's answers, baseline values. The enumerator confirms or corrects them.

Preloaded answers are what your organisation already knows about each respondent, loaded onto one form so that it opens filled for that person. They are form answers only: collecting never changes the person's record.

Two doors, one store

A lookup table (Design, Import, "Attach a dataset") holds reference data that is not about the respondent, such as prices per village, and is read by formulas with pulldata(). Its columns are your choice and it is matched by any key.

Preloaded answers (Responses or Design, Import, "Preload answers") hold values about each respondent. Their columns are the form's own variable names and each row is matched to one respondent on the form's list. The questions themselves open filled.

Both are stored the same way, as a dataset attached to the form. Preloaded answers can also be read in a formula with pulldata('preload', 'column', 'key_column', ${question}), as SurveyCTO users write it. Preloaded answers need a respondent list: a form with no list cannot carry them.

The template

The template is made at the moment you download it, from the form as it is now. Its first column is the respondent key: the respondent reference, the organisation's own reference, or the national ID. After it comes one column per question that can hold a value, headed by the variable name. Notes, calculations and media are not included; questions inside a repeat follow as numbered columns (below).

Each column carries its question's rules in Excel: choices as a list of codes to pick from, number ranges, dates. Required questions are highlighted, and the Validation sheet explains every column in the workspace's languages. The Update template holds the rows already loaded, plus empty columns for questions added since.

Every row is checked before anything is loaded. A respondent who is not on the list, a key used twice or a value the question would refuse is reported with its row and the reason, and that row is not loaded. An update never deletes a row it does not mention. To take rows off, upload them with "Remove these rows". A new upload makes a new version of a published form, so every response keeps the values it was filled with.

Questions inside a repeat

A repeat's questions are preloaded in the wide layout, the same columns as the wide export and the response import: one row per respondent, and each question in the repeat as numbered columns, one set per entry: crop_name_1, crop_area_1, crop_name_2, crop_area_2, and so on. Nobody states how many entries a row has: it is read from the columns filled in, and an entry with any of its columns filled is one entry. The Import template has columns for as many entries as the repeat allows; the Update template brings back the entries already loaded. A row that carries a repeat's columns replaces that respondent's entries for that repeat.

Every row is checked before anything is loaded: more entries than the repeat allows, fewer than it needs, and a value its question would refuse are reported with the row. When the number of entries comes from the form, for example a count of the crops ticked, the row must carry that answer too and the entries must match it; entry 1 is the first crop written in the answer, entry 2 the second, and so on.

When the enumerator opens the respondent, the entries are created filled and marked "Preloaded". Changing the answer that sets the number of entries keeps each entry that still belongs to an answer, opens new ones empty, and asks before removing an entry that holds answers, naming it. "Lock the preloaded value" on a question inside a repeat locks it in every preloaded entry, and that repeat's entries can then not be added or removed. Phones receive the entries with the rest of their respondents' rows.

Filling a preloaded form

When an enumerator opens a respondent, every question with a preloaded value starts filled and is marked "Preloaded". It can be confirmed or corrected. Conditions and calculations treat a preloaded value exactly as a typed one, and a value hidden by a condition is not stored.

In the question editor, "Lock the preloaded value" shows it as a value nobody can change, for IDs and other values that must not move. The server refuses a changed locked value; on a phone the preloaded value is put back when the response is sent. In XLSForm the column is cl::preload, with lock or edit.

Each submitted response records, for every preloaded question, the value it was preloaded with and whether it was kept or changed.

What goes to phones

The setting "Rows sent to phones" decides which rows each phone carries. "Only each enumerator's assigned respondents" sends a phone only the rows of the respondents assigned to its collector on the form's respondent list, so other rows never reach it. A reassignment moves the rows at the next sync. "All rows" sends every row to every phone collecting the form, and the import page says how many rows and how much data that is.

When the form assigns nobody to a collector, every phone carries every row. The rows are kept with the rest of the form's offline data and are cleared with it, by signing out and by a remote wipe. Lookup tables still go to phones whole.

Questions

What is the difference between a lookup table and preloaded answers?

A lookup table is reference data, not about the respondent, that your formulas read with pulldata(). Preloaded answers are what you already know about each respondent: their columns are the form's own questions, each row belongs to one person on the list, and the questions open filled with them.