HD DCD XLSForm Overview

HD DCD XLSForm Overview

Dernière mise à jour: 2025-10-07 15:06

This page is a work-in-progress reference for all available functions in XLS Forms used by healthdata.be to create Data Collection Definitions. It is divided into the three possible sheets: surveychoices, and settings.

survey

This sheet is mandatory in all XLSForms.

CategoryItemDescriptionSynonymsNotes
Column headers
typeSets the question type, see below.
nameUnique variable name
label::[language]Label visible in the form. Currently English, French and Dutch are supported.
hint::[language]Providing a help text description.
guidance_hint::[language]Providing a help text tooltip.
constraintSpecifying additional validations on the provided data.
constraint_message::[language]The message a user is shown if the response was not valid
requiredWhether a variable is mandatory to be provided.
required_message::[language]]Allows to customize the error message if required question is not answered
defaultA default value that is pre-filled before the user gets to the question
relevantSkip logic condition (the relevant condition that needs to be fulfilled in order for the present question to be displayed)
read_onlyWhether a question response can be edited
calculationFor specific calculations.
appearanceIncludes variable specifics.
Supported question types
select_one [choices] [or_other]User can choose one of several choices
select_multiple [choices] [or_other]User can choose one or more of several choices
select_one_from_file [file]User can choose one of several choices from an external file
select_multiple_from_file [file]User can choose one or more of several choices from an external file
textUser can enter a text response
integerUser can enter an integer
decimalUser can enter a decimal number
dateUser can enter a date
timeUser can enter a time of day
datetimeUser can enter date and time together
noteUser is shown a note (no response possible)
GroupsGroups contain one or more questions, or other nested groups, which may loop (repeat)
begin_groupSets the beginning of a group
end_groupEnds the group
begin_repeatSets the beginning of a repeat group
end_repeatEnds the repeat group
Form variable references
${variable_name}Reference another question (can be used in skip logic condition [relevant], validation, inside another question or hint label
.Current question

choices

The choices sheet is optional and only required if there are any select_one or select_multiple questions in the file.

ItemDescriptionSynonymsNotes
list nameA unique name for each set of choiceslist_name
nameID (name) of the specific choice, will be saved to XML
label::[language]Choice label, will be displayed on screen. Allows adding a translation of choice labels, showing [language] in the interfacelabel::[language]
mediaoptional
[filter_category_name]Allows setting a specific parent category for choice filters (cascading questions)Column name is specified by user, e.g. ‘country’
geometrySpecial column name used by the `map` appearance

settings

The settings sheet and all of its items are optional.

ItemDescriptionSynonymsNotes
form_titleTitle displayed at beginning of form, in form listif missing assigned to form_id
form_idID used in the XML and often needs to be uniqueIf missing assigned to xls name
public_keyKey required for encrypted forms
submission_urlSpecific URL for uploading data, overrides default
default_languageIf form uses multiple languages, this one sets which to use by default
styleSeparate questions groups into pages (on Enketo). Switch to a different theme.Allowed values: pages, theme-grid, theme-formhub
version
instance_nameAllows user to create a dynamic naming convention for each submitted instancefor example, concat(${lname}, ‘-‘, ${fname}, ‘-‘, uuid())