XLSForm Naming Best Practices: Fields & Choices
XLSForm Naming
Best Practices
From digital questionnaires to reliable datasets: practical naming standards for ODK, KoboToolbox, SurveyCTO, Ona and related data systems.
Reliable evidence starts before the first interview. A well-designed digital questionnaire helps organisations collect structured information, while clear naming conventions make the resulting data easier to analyse, combine and reuse.
What is XLSForm?
XLSForm is a spreadsheet-based format for designing digital data-collection questionnaires. Teams prepare questions, response options and form settings in a familiar Excel workbook. Compatible platforms, including ODK, KoboToolbox and SurveyCTO, turn that workbook into a digital form that field teams can use on phones, tablets or in web browsers.
Unlike a simple online questionnaire, an XLSForm can define skip logic, required responses, validation rules, calculations, multiple languages and repeat groups. Depending on the platform and device, field teams can also collect data offline and submit completed records when connectivity returns.
For organisations moving from paper forms or disconnected spreadsheets, this creates a more consistent workflow. It reduces manual data entry and provides a foundation for structured datasets that can feed monitoring systems, evaluations and reporting. Good form design alone does not guarantee data quality: sampling, field supervision, access controls, consent procedures and validation remain essential.
Why this matters for international cooperation and humanitarian action
Collect comparable field evidence
Apply the same questions and response codes across enumerators, locations and assessment rounds, including where teams work offline.
Build dependable datasets
Link household, participant, service and follow-up records using defined identifiers instead of ad hoc spreadsheet columns.
Reduce analysis and reporting effort
Prepare consistent exports for R, Python and dashboards, making it easier to compare findings and reproduce analyses.
From a form to an evidence system
Design the questionnaire → collect and validate records → store a structured dataset → analyse results → inform decisions. Stable field names, choice codes and form versions help preserve this chain when projects expand, teams change or data collection is repeated. For a robust database, also plan record identifiers, relationships, metadata, security and data governance.
What you will gain from this guide
This practical reference helps teams design forms that are easier to maintain and datasets that are ready for analysis. By the end, you will be able to:
Apply a consistent convention to form IDs, field names, groups and repeats.
Use short, readable response codes that support direct analysis while preserving stable meanings.
Check versioning, translations, exports and downstream R, Python and dashboard workflows.
Short on time? Download the one-page naming cheatsheet, or go directly to the pre-deployment checklist.
Most XLSForm guidance focuses on questions and skip logic. Yet long-term problems often begin with less visible decisions: field names, choice codes, list identifiers and form versions. A questionnaire can run correctly in KoboToolbox or ODK Collect while creating avoidable work when a team merges datasets, updates a dashboard or compares survey rounds.
This guide presents a portable naming convention for monitoring, evaluation, accountability and learning (MEAL) systems. It also explains where platform-specific requirements should take precedence.
Fields and groups
Readable, stable identifiers for questions, calculations and repeat groups.
Controlled codes
Reusable lists and response values that work across datasets and languages.
Form identity
Consistent form IDs, version numbers and documented deployments.

The three worksheets at a glance
Machine-readable identifiers link the questionnaire structure, answer options and form metadata. The simplified example below shows how the three components work together.
| type | name | label |
|---|---|---|
| date | interview_date | Date of interview |
| select_one yes_no | project_support | Received support? |
| list_name | name | label |
|---|---|---|
yes_no | Yes | Yes |
yes_no | No | No |
| form_title | form_id | version |
|---|---|---|
| Project Survey | project_survey | 2026102101 |
Illustrative XLSForm structure. The select_one yes_no type references the yes_no list in the choices sheet.
1. Treat names as part of the data model
Names appear in exports, calculations, API responses, repeat-group relationships and downstream analysis. Changing them after data collection starts can break scripts, mappings and historical comparisons. Define naming rules before the first deployment and apply them consistently.
Separate labels from machine-readable identifiers
Labels communicate with respondents and enumerators. Identifiers communicate with software and should remain stable even when labels change or are translated.
| Question label | Recommended field name | Avoid |
|---|---|---|
| How many people live in this household? | household_size | Q14 |
| What is the interview date? | interview_date | InterviewDate |
| Has this household received project support? | project_support | received support? |
Adopt lowercase snake_case as an organisational default
For form, field, group, repeat and choice-list identifiers, use lowercase letters, digits and underscores, starting with a letter. For choice values, we recommend concise, human-readable codes with consistent capitalisation and underscores, such as Yes, Not_applicable and Very_well. This is a deliberate distinction, not an inconsistency.
Recommended: household_id, respondent_age, food_security, rcsi_7d.
Avoid: HouseholdID, household-id, household id, 7day_rcsi, household.id.
This is a deliberately conservative team convention, not an assertion that every platform forbids every alternative. Some tools permit additional characters or initial underscores. A narrower shared convention reduces cross-platform friction.
Prefer concepts to question numbers
Use water_source rather than q22b. Question order changes during piloting, but the underlying concept often does not. Where a section prefix helps organise a large form, use it consistently, for example admin_interview_date, food_rcsi_7d and health_service_access. Avoid unnecessary prefixes that make every name long.
Keep names reasonably short but unambiguous. Document approved abbreviations, such as hh for household or rcsi for reduced Coping Strategies Index, before using them across teams.
2. Name and version forms in the settings sheet
The settings sheet matters as much as the visible questions. Distinguish between the human-readable title, the stable machine-readable form identifier and the version of the deployed definition.
| settings column | Example | Purpose |
|---|---|---|
form_title | Household Food Security Assessment | Readable name shown to users |
form_id | household_food_security | Stable identity of the form |
version | 2026101801 | Distinguishes a revised form definition |
Recommended practice: preserve form_id when updating the same instrument; increment version for each deployment. Create a new form_id when the instrument represents a genuinely different data collection workflow or dataset. Keep a separate change log explaining what changed and why.
A project year does not automatically belong in form_id. Include it only when each year’s instrument is intentionally treated as a separate form. Version conventions should be checked against the deployment platform.
3. Name fields, groups and repeats for analysis
Field identifiers should describe what the stored value means, not only how the enumerator asks the question. For example, household_size works better than number; water_source_main is more precise than water.
Use groups to express structure
Examples of clear group names include admin, consent, food_security, livelihoods and observation. Avoid placeholders such as group1.
Name repeat groups after the records they contain
Plural names help communicate that each repeat represents a collection: household_members, visits, service_contacts. Inside a repeat, name fields according to the individual record, such as member_age and member_relationship.
For linked datasets, establish stable IDs for the parent record and clear keys for child records. Do not assume that a repeat’s position is a durable identifier across edits or datasets. Preserve platform-generated submission and parent linkage metadata in exports.
Do not rename fields merely because labels change
For example, changing a label from “Do you have a kitchen garden?” to “Does your household currently maintain a kitchen garden?” does not necessarily justify changing kitchen_garden. However, if the underlying measure changes from ever owned to currently active, keeping the same name may falsely imply comparability. In that case, define a new variable or document the measurement break explicitly.
4. Design the choices sheet as a controlled codebook
Treat the choices sheet as a codebook
Use stable, short, readable choice codes. The respondent-facing label may be translated or revised, while the machine-readable code retains its meaning across survey rounds and reporting systems.
For select_one and select_multiple questions, the choices sheet defines the values stored in data. The main columns are list_name, name and label. Our default is lowercase snake_case for list_name and readable, capitalised codes for choice name. list_name links a question to a list; name stores the choice code; label displays the response option.
| list_name | name | label |
|---|---|---|
yes_no | Yes | Yes |
yes_no | No | No |
water_source | Piped | Piped water |
water_source | Protected_well | Protected well |
water_source | Other | Other source |
project_satisfaction (field), satisfaction_level (list), Very_good (stored choice), and “Very good overall” (display label). This combination supports stable exports and readable plots without storing whole sentences as codes.Reuse truly equivalent lists
Create one yes_no list and reuse it wherever a strict yes/no answer is appropriate. Do not create yes_no_1, yes_no_2 and yes_no_3 without a substantive reason. But do not reuse a list merely because its labels look similar: a question that permits an “Unsure” response has different response rules from a mandatory binary question.
Recommended list identifiers describe the answer domain: yes_no, water_source, school_type, access_barrier and satisfaction_5pt. Avoid list1 or dropdown3.
Choose between descriptive and numeric codes deliberately
Our preferred convention is a short, descriptive choice code in readable capitalised snake case, such as Yes, No, Very_well, Not_applicable or Protected_well. This keeps the stored response understandable without carrying an entire question-length label into the dataset. In R, Python and many visualisation tools, these values can often be used directly as plot categories and table headings, reducing manual recoding. For publication-ready charts, underscores may still need conversion to spaces, and some labels may require translation or other presentation adjustments.
Numeric codes such as 1, 2 and 3 can be appropriate where existing codebooks, statistical packages or repeat logic benefit from them. SurveyCTO’s own guidance explains advantages of numeric values in particular workflows. For a scored scale, numeric choices may make calculations simpler, but always document the scoring direction.
The governing rule: use a consistent style within an organisation and keep every code linked to one meaning. Capitalisation is intentional and case-sensitive: Yes and yes should not be mixed. Numeric values remain appropriate when a scoring system or external standard calls for them. An ordinal response code is not automatically an interval-scale measurement.
Make each code unambiguous within its list
Do not use the same name for two different responses in one list. Some XLSForm implementations allow duplicate choice names in specific cascading-list configurations, but this requires careful scoping and explicit support; it should not be an ordinary naming practice. In large administrative lists, use durable, unique geographic or institutional identifiers rather than relying on repeated place names.
Standardise special responses, but keep their meanings distinct
| Suggested code | Meaning | Use with care |
|---|---|---|
Other | A valid answer not covered by the listed categories | Usually add a relevant specify-text field |
Unsure | Respondent is unsure or does not know | Use when this corresponds to the response wording; distinguish from refusal |
Refuse | Respondent declines to answer | Use only where ethical and appropriate |
None | No listed options apply | May need exclusivity in multi-select questions |
Not_applicable | Not applicable, if explicitly offered as a response | Often better handled by relevance/skip logic |
Do not collapse “Unsure”, “Refuse”, “None” and a blank value into one code. They have different analytical meanings. In select_multiple questions, options such as None, Unsure and Refuse should generally be mutually exclusive with substantive selections; implement this using supported form logic and test it.
Keep labels translatable and codes stable
For multilingual instruments, maintain separate columns such as label::English (en) and label::Français (fr), following the syntax supported by the deployment tool. Translate what respondents see; do not translate machine-readable codes. Review each language for meaning, literacy, inclusion and local terminology.
Plan for choice filters and large lists
For cascading geography selections, use stable codes (for example, an administrative unit code) and explicit parent attributes for filtering. Avoid treating displayed names as database keys. Verify duplicates, missing parents and the behaviour when administrative boundaries change.
Consider external CSV files or linked reference tables for very large or frequently updated lists when supported. These may be easier to maintain than thousands of rows in the workbook. Test offline behaviour and updates on actual collection devices.
Remember how select_multiple data are stored
Many XLSForm workflows store multi-select answers as a space-separated sequence of choice values; export tools may also generate separate indicator columns. This is one reason to avoid spaces in codes and keep them relatively concise. When analysing, use selection-aware functions or parse the values properly rather than searching for substrings.
5. Protect comparability when forms change
A stable identifier must also have a stable meaning. Before revising a live form, classify each proposed change:
| Change | Recommended action |
|---|---|
| Correcting spelling or improving a translation without changing meaning | Keep the field and choice codes; increment the form version |
| Adding a new response category | Use a new, unique choice code; retain previous codes |
| Changing the meaning of a category or indicator | Define a new code/field or document a clear measurement break |
| Renaming a field or recoding old options | Assess downstream impact; create and test an explicit migration mapping |
| Removing or merging categories | Preserve the historical codebook and document the harmonisation decision |
Maintain a small data dictionary with at least: form_id, form version, field name, question label, field type, choice-list name, choice codes, definitions, calculation rules and dates of change. Store a copy of every deployed XLSForm together with its change log. For repeatable R or Python reporting, version the analysis code alongside the instrument and test schema changes before release.
6. Apply the standard across platforms, with explicit exceptions
ODK, KoboToolbox, SurveyCTO and Ona use XLSForm-related workflows, so a common naming standard supports interoperability. ArcGIS Survey123 also works with XLSForm concepts but has its own implementation details and integration constraints. Always validate the instrument against the intended deployment environment rather than assuming identical behaviour.
ActivityInfo requires particular care: it provides XLSForm import, but its relational data model differs from the XForm model. Some XLSForm features are not supported; certain lists are imported as reference forms rather than ordinary select fields. An imported XLSForm should therefore be checked field by field, including choices, filters and repeat structures, before using it operationally.
7. Minimum pre-deployment naming checklist
- Every relevant form, field, group, repeat and list has a descriptive, stable identifier.
- Form, field, group and list identifiers use lowercase
snake_case. Choice codes use short, consistent, human-readable values, such asYes,UnsureandNot_applicable. - No field is identified only by a question number, and abbreviations are documented.
form_idis stable for updates to the same instrument;versionchanges for every deployment.- Each choice list has a meaningful
list_name; each option has an unambiguous code. - Common lists are reused only when response meanings and rules really match.
- Special codes (
Other,Unsure,Refuse,None) are consistent and logically handled. - Translated labels preserve the same underlying field and choice codes.
- Repeat keys, external choice lists and cascade filters have been tested in exports.
- A small sample export has been checked in the actual R, Python or dashboard pipeline.
- The deployed XLSForm, codebook and change log have been archived together.
Bottom line: naming conventions are not cosmetic. They are low-cost controls for data quality, interoperability and maintainable evidence systems. Teams that agree on identifiers before deployment spend less time repairing datasets and more time interpreting results.
Make naming a shared team standard
Use these conventions as a starting point for an organisational codebook, then test every form in the intended collection and analysis environments.
Developed by movimentar GmbH for reliable, reproducible data collection and analysis. This guidance is a recommended practice, not a universal platform requirement.
Technical resources and further reading
These official resources explain XLSForm syntax, choice lists and platform-specific behaviour. Our naming recommendations are practical conventions, not a universal standard.
- XLSForm documentation — workbook structure and form syntax.
- ODK: XLSForm guide — form design and supported features.
- KoboToolbox: Managing option choices — defining response options and choice lists.
- SurveyCTO: Choice value naming practices — considerations for descriptive and numeric codes.
- ActivityInfo: XLSForm support and import guidance — features and import behaviour.
























