An XLSForm is the spreadsheet questionnaire KoboToolbox, ODK and SurveyCTO all use. Takwimu reads it and writes it.

Get the workbook out of the other tool

  • KoboToolbox: open the form, choose the menu beside its name, and download it as XLS. If the file ends in .xls, open it in Excel, LibreOffice or Google Sheets and save it as .xlsx.
  • ODK and SurveyCTO: use the .xlsx form definition you uploaded there.

Import it

  1. Open Instruments, or the Survey Builder, and choose Import an XLSForm.
  2. Choose the .xlsx file. If the form reads CSV files, choose them too, beside it, or choose one zip holding the workbook and its CSVs. It is read and checked. Nothing is created yet.
  3. Read the result. It shows the title, how many questions will arrive, and the languages.
  4. Read the list of rows that will not be carried over. Each one gives its row number in the spreadsheet and the reason, such as a question type the platform does not carry, like video.
  5. Read the notes, and the list of files the form reads. The notes say how a row was read where it matters, for example a condition that reads a question asked after it, or a hidden field kept as a calculation of its value.
  6. Choose Create the questionnaire. It arrives as a draft, ready to edit in the Survey Builder.

The study owner, analysts and field supervisors import questionnaires. Other seats are not offered Import an XLSForm.

What the notes list

Everything the workbook says that the platform does not carry is listed on its own row, with its row number and what happens here instead. That covers every column and every setting the platform does not read, and every appearance it does not draw. A setting or a choice is listed with the sheet it is on. Some examples follow.

  • a field-list group, which ODK shows on one screen, is asked a question at a time;
  • a month-year date asks for the whole date;
  • an annotate or draw image takes a photograph;
  • a guidance_hint, a picture or a sound beside a label, a trigger and a save_to column are each named.

One downloaded from here lists nothing.

Rows such as start, end and deviceid are left out, because the platform records those on every interview anyway. A today or start row that a calculation reads is kept as a calculation of the interview's own date.

What carries over

  • Single and multiple choice, ranking, text, whole and decimal numbers, notes, dates, times, locations, barcodes and acknowledgements.
  • Ranges, with their start, end and step, drawn as a slider, an upright slider, a picker or stars as their appearance says.
  • Lines and areas (geotrace and geoshape), files, and start-geopoint, where an interview began.
  • hidden fields, which hold their default, and the default of any other question, whether a value or an expression such as today().
  • Lists read from a CSV: select_one_from_file, select_multiple_from_file, the search() appearance and select_one_external. A calculation on a question that is asked arrives as the answer it starts with.
  • hint, and required, including a required cell that holds a condition: the question is then required only when it holds.
  • relevant, as written. A simple comparison arrives as one you can edit from the lists; anything else, such as today() > date('2026-01-01'), arrives as an expression.
  • constraint, as written, with its constraint_message. A lowest or highest value, a length or a count of choices with no message arrives as the builder's own fields.
  • Groups. A group's title becomes a section heading, shown only where its group is asked, and its condition applies to every question in it.
  • note rows, which become notes shown above the next question on every channel. See Build a questionnaire.
  • randomize=true in parameters, so a list ODK shuffles is shuffled here too.
  • The instance_name setting, which names each submission, and KoboToolbox's submission message, which becomes the questionnaire's closing message. See End an interview in your own words and name each submission.
  • A public_key setting. The questionnaire arrives encrypted with that key, so the private key file that opened its answers in KoboToolbox or ODK opens them here. A key that cannot be used is listed with the reason, and the questionnaire arrives unencrypted. See Encrypt a questionnaire.
  • begin repeat blocks with their repeat_count, one inside another up to three deep, and the calculations, notes, photos and files inside them. See Ask the same questions for each member.
  • choice_filter, so a list offers only the choices that belong to an earlier answer. county=${county} arrives as one you can edit from the lists, and any other filter, such as village=${village} and phase=${phase}, as written.
  • calculate rows and their calculation, with the functions XLSForms use for dates, text, numbers, choices, lines and areas, and pulldata() for a row of an attached CSV.
  • An earlier answer shown in a label, written ${name}.
  • Translations in label::, hint:: and constraint_message:: columns. They arrive marked as awaiting review, so a reviewer approves each one before a respondent sees it.
  • The older column names of forms made for early ODK Collect and KoboToolbox, such as bind:relevant and jr:constraintMsg.

Functions that read across a repeat group, such as sum(), count(), join(), indexed-repeat() and position(..), come in as written. A [position() = 2] filter on a repeat is read as indexed-repeat(), which says the same. Two functions are listed with the reason: random() and uuid(). A video question is left out: the platform does not collect video.

Download a questionnaire as an XLSForm

In the Survey Builder, choose XLSForm beside the version badge. The workbook opens in KoboToolbox, ODK and SurveyCTO. A questionnaire with CSV files comes as a zip. It holds the workbook and its CSVs. Skip rules are written as relevant on the questions they skip. A column named takwimu keeps what the format cannot say, such as a rating scale's labels, so the same file imports back unchanged. An encrypted questionnaire's workbook carries its public key, and the closing message and the submission name go out as KoboToolbox writes them.