Skip to content
Funcionalidades Preços Documentação Contacto Iniciar sessão Começar
Idioma

Construir um formulário

Creating a form or importing one from XLSForm, the twenty one question types, what you can set on each question, the form's pages and Settings, sections and repeating sections.

Em Formulários, concebe um questionário próprio e recolhe depois as respostas. Constrói o formulário uma vez, publica-o e, a partir daí, a sua equipa pode preenchê-lo no espaço de trabalho, enquanto pessoas externas à sua organização respondem ao mesmo formulário através de uma ligação pública.

Criar um novo formulário

A new form begins empty. You add its questions one at a time in the builder, on the form's Design tab, or you import a whole questionnaire from an XLSForm workbook.

  1. Abra Formulários no menu do espaço de trabalho e crie um formulário.
  2. Abra o novo formulário e escolha Construir.
  3. Adicione uma pergunta, escolha o tipo, preencha as definições e guarde-a. Repita até o questionário estar completo.

A construção exige a permissão de edição de Formulários. O construtor encontra-se num endereço com esta forma: /forms/<id>/build/

Os vinte e um tipos de pergunta

Cada pergunta pertence a um de vinte e um tipos, e o tipo determina tanto o que a pessoa que responde vê como o que a plataforma guarda. Escolha primeiro o tipo, porque é ele que determina quais das definições abaixo aparecem.

There is also a note, which shows text such as an instruction or a consent paragraph and records no answer.

A note is always shown on the screen of the question that follows it, never on a screen of its own: beside the form, level with the question, where the screen is wide enough, and above the question on a phone. A note set to With the question is shown above the question on every screen. Several notes before one question keep their order. A note at the end of a section joins the question before it, and is shown above it. A screen reader reads it with its question. To draw a note inside that question's card instead, tick Show this note with the next question when editing the note. A note with a display condition of its own, a note in a repeat group, and a note followed by another note keep a card of their own.

FamíliaTipos disponíveis
Texto, números e datasTexto curto; Texto longo/parágrafo; Número; Número de telefone; Número de telemóvel; Data
Opções de respostaBotão de opção, escolha única; Caixa de verificação, escolha múltipla; Lista pendente; Sim/Não
Escalas, grelhas e ordenaçãoEscala de Likert (1 a 5); Classificação (1 a 10 estrelas); Matriz/grelha; Ordenação
Multimédia e capturaFotografia(s); Vídeo; Nota de voz; Carregamento de documento/ficheiro; Assinatura; Leitura de código de barras/código QR; Localização GPS

O que pode definir numa pergunta

Creating a form starts with how it is set up: what it belongs to (an activity or a whole project), where its respondents come from, the respondent group and the form type. Each of these can also be left to Decide later. Before the form is created, a confirmation shows what locks when the first real response arrives, what can change at any time, and what is not decided yet.

What the form belongs to, where respondents come from, the respondent group and the form type lock when the first response is submitted; a draft never locks them. Until then they can be changed in Settings. A form with a setting not decided yet stays a draft, and publishing names what is still undecided. Quality checks, the public link, the duplicate policy, printing, the display mode, randomised questions and Available to all collectors can change at any time.

One change stays open on a form that holds responses: from no respondent group to the register that every response naming a person already names. Settings shows it under Respondent group, says why it changes the meaning of no response, and records it in the form's history. Responses that name no one stay as they are. Any other change of scope, source, group or type stays locked.

Cada pergunta tem uma etiqueta e, se o pretender, uma linha de texto de ajuda. Ambos são texto, pelo que ambos são introduzidos uma vez para cada uma das línguas do seu espaço de trabalho. Para além disso, as definições apresentadas dependem do tipo escolhido:

  • Obrigatória, para que o formulário não avance enquanto a pergunta não for respondida.
  • Opções de resposta, adicionadas e removidas como linhas. Cada linha contém uma etiqueta que a pessoa lê e um valor que a plataforma guarda.
  • Um valor mínimo e um valor máximo, para perguntas que aceitam um número.
  • Etiquetas para o extremo inferior e o extremo superior de uma escala, para que uma classificação signifique algo mais útil do que um simples número.
  • Um nome de variável. É obrigatório e tem de começar por uma letra minúscula e depois utilizar apenas letras minúsculas, algarismos e sublinhados, por exemplo household_size
  • Os tipos de ficheiro que aceita, para perguntas de carregamento.
  • Uma fórmula, para um campo calculado cuja resposta é determinada pela plataforma em vez de ser pedida.
  • Regras de validação, incluindo uma expressão regular e a mensagem de erro apresentada quando uma resposta não lhe corresponde.
  • As linhas e a escala de uma matriz, os itens a ordenar numa classificação e a pergunta principal de uma seleção em cascata.
  • Fill from: where a question's answer starts. The collector's account starts a text answer with the name of the person filling the form; the collector's ID with their national ID when their profile has one, else their account number; the date of collection with the day the form is filled. These stay editable, a saved answer always wins, and a public link starts them empty. The time of collection is set when the response is sent (from the phone's time when it was collected offline) and replaces anything typed. Only this setting does any of this: a question is never filled because of its name, and the form check suggests the setting where a name asks for it. In a workbook it is the cl::prefill column.

Linked to record field names the field of the respondent's record a question shows: the answer is filled in from the record, and collecting never changes the record. Updating a record from an answer is a later, deliberate step, Update records from responses. A section's heading is edited on the section, never inside a question. The type is chosen from one grouped list; changing the type of a question that already holds answers asks first and says what happens to them. Save and next keeps the panel open on the following question.

Every question is edited the same way, whether it was added in the builder or came from an XLSForm workbook, by import or by update: its text, its type and every setting. On a form that has never been published, the type changes freely, because the practice responses collected before the first publication are discarded then. Once a question holds real answers, a type change asks first and says what happens to them: a single choice question becoming text keeps each answer as its choice code, without the label; a change that would hide the answers in the exports is refused.

The variable name matters more than it looks. Skip logic refers to a question by its variable name, and the exports name each column after it, so give each question a short name you will still recognise months later.
Captura de ecrã: uma pergunta aberta no construtor, com as caixas de etiqueta para cada língua, as linhas de opções de resposta e o nome da variável.

Who a form belongs to, and who it is about

A form's scope says what it belongs to: one activity, or a whole project. Its respondent source says who it is about: the participants of its activity, the participants of the activity chosen at each response, a list of people you choose, an uploaded roster, or no respondent list. Once the form holds a submitted response, neither can change, and nor can its respondent group or its form type: the rest of the Settings page still saves. A draft, however far it has got, locks nothing.

A form with no respondent list is about nobody on a register. It opens at its first question, online and on a phone, with no search, no scan and nobody to register: use it for an anonymous survey, or for anything that is not about a person, such as market prices. Registering people from a form needs a respondent group, so a form that declares none registers nobody.

One form for many events. A form that is the same at every event, such as a training satisfaction survey, belongs to the whole project and takes the source "Participants of the activity chosen at each response". When the form opens, the collector chooses the activity, from that project's activities only, and the list of people narrows to that activity's participants. Every response keeps its activity, so one dataset carries an activity column instead of one form for each event. Offline, the activity is chosen on the phone and sent with the response.

Where a project names an operating area on its Countries tab, the place picker on a form collected for that project offers those places first, under "Where this project works", and the rest of the country after them. Nothing is hidden: every place stays available, and what you may record is unchanged. For a response collected at an activity, the order follows that activity's country.

Each response also records the country it is about: its activity's, else its respondent's, else a place answer's, else the collector's default country. It is updated whenever the response changes, and the Country column and filter on the Responses tab use it.

A form's pages

Every form page opens under the same header: the form's name, its status and version, the chip with the result of its check, Share, Preview, Fill and a ⋮ menu. Below it run the tabs Overview, Design, Responses, Monitoring, Team, Settings and History. Which of them you see depends on your role.

Overview opens with four tiles: Response rate, To review, Drafts and Last response. Each shows one figure with a short caption, and its ⓘ button says how it is counted. Where the form has no rate to show yet, the first tile shows how many responses were submitted.

Below the tiles, About this form names the form's type, what it belongs to, its respondents, its language, how many questions it asks and its versions, with the workbook it was built from. Sharing says whether the public link is on, gives the link and who may fill it, and offers Present QR code and the posters while the link works. When the link is on but cannot be filled, Sharing says so with a Warning and the reason.

Team holds three blocks, each with a line of help: Enumerators, with the reviewers who check their work; Devices, with what each device holds and whether collection is complete; and How responses arrived.

The form's Settings

Settings is in sections, listed beside them: Basics, Respondents, Response rate, Sharing and verification, Collection, Review and Archive and delete. Each section has its own Save, which saves that section and brings you back to it.

  • Basics: the title, the form language, the form type, scoring, what the form belongs to, its status, its description and its instructions.
  • Respondents: the respondent group, where respondents come from, and what happens when the person is not on the list.
  • Response rate: how the rate is counted, and the expected number of respondents.
  • Sharing and verification: the public link, answering only through each respondent's own link, who can fill the shared link and how they verify, and the access code. Answering through each respondent's own link, and showing each respondent what we have on record for them, need a respondent list, so they are offered only when the form has one.
  • Collection: entry by staff, printing, Available to all collectors, several responses per person, the duplicate policy and random question order. There is no layout setting: every form is filled one question per screen, and a section set to show its questions together is one screen. Notes placement: Beside the question (in the margin, where the screen has room; the default) or With the question (in the form column, above the question). A note can be set otherwise in its question editor, and on a phone notes are always above the question.
  • Review: Review of submissions, which is Off (every submission approved automatically), All or Some, a share you set; the default reviewer; whether a reviewer may withdraw an approval; and whether several responses may be approved at once. A response returned to its collector is always reviewed again when it comes back. Who reviews: all reviewers (everyone who reviews every form, and everyone assigned to this one) or only the reviewers you tick; responses the respondent filled in on the public, verified or personal link can have reviewers of their own.
  • Archive and delete: Archive this form or Restore it, Reset collection, the form's Trash, and Delete this form. A form holding responses is never deleted: archive it instead.

A locked setting shows one line: Locked because this form has responses, then Duplicate to change, which makes a copy of the form that you can set differently, and Why?, which opens the explanation.

The workspace Owner also sees Change a locked setting. Saving the change first shows what it does to the submitted responses, and nothing changes until the Owner confirms.

When the public link is on but nobody can fill it, Sharing and verification shows a Warning with the reason and what to do. Public form links explains the cases.

Using a platform list

A choice question can take its choices from a list the platform already holds, instead of a list you type: the register's own lists (gender, population group, education level, marital status and the others) or the locations tree at one level. In the question, choose "Use a platform list" beside "Type my own choices". The list is the workspace's own, in every language it uses, and it follows the platform: when an entry is added or switched off in Settings, every form using the list follows, and a published form gets a new version so phones pick up the change.

A location question offers one level of the tree. It can follow another location question one level up: a district question that follows the governorate question offers only that governorate's districts. On a project's form the project's places come first, under their own heading, with a note saying why; every other place is still listed after them (suggest). Choose restrict only when an answer outside the project's places is truly an error: it offers the project's places alone, and a collector standing somewhere the project did not plan for cannot record it. When a project starts working somewhere new, add the place to the project and every form follows.

Where the answer goes is a separate choice. A question can be bound to a field of the respondent's record, such as gender. For a respondent who is already registered, a bound question starts filled in from their record, so the collector does not ask again what the register already holds. Tick "Ask again even when known" when the collector should confirm it, for example from an ID card. A bound question never changes the record: answers are not written back to the register.

Downloading the form as an XLSForm writes a question that uses a platform list as an ordinary select_one, with the list as it stood that day in the choices sheet, so the file opens in Kobo, in Excel or on paper. Its cl:: columns say which list it came from; uploading the file again reconnects the question to the live list. If a file you upload over the form does not carry those columns, the preview names each question that would lose its list or its binding before anything changes.

Each place level is named the way your workspace names it in Settings → Locations, such as Governorate, District and Village, in every language you use. The lists are grouped by the register they come from: Individuals, then Shared lists such as country, then Locations. Any form may use any list.

Binding an answer to a record field offers only the fields of the form's own respondent group. While that group is still to be decided, binding is unavailable and the control says why; the list itself can still be used.

A choice of your own that a condition uses, such as “Other (specify)” with its follow up question, is kept beside the platform list when you switch a question to one. Saving a question brings you back to it on the Design tab.

On the form itself, every location question is the same control, whatever its level and whether it was written as a list or a dropdown: the project's own places as cards, up to twelve of them, and every other place in one searchable list underneath, “Another place…” (on a question limited to the project's places, “Search this project's places”). The list's headings are headings, never answers, and the form's “Other (specify)” comes last, on its own, for a place that is not in the list. Typing a name finds it in either language, whatever the spelling of alef, taa marbuta or yaa. It works offline too.

For a cascade of your own choices, each choice of the following question picks, under “Belongs to”, the choice of the parent question it belongs to; nobody types a code. If you switch the parent question to a platform list, the editor warns at once that the questions following it would stop matching, and offers to switch them to the next place level, following it. Publishing refuses a form whose cascades do not match.

When a list you typed looks like one of the platform's lists, such as a gender question with male and female, “Check this form” suggests the platform's list and switches it in one click. A suggestion never stops a form from being published.

A question that uses a platform list can allow "Other (specify)": tick "Allow 'Other (specify)'" under the list. It adds the choice after the list, stored as 96 unless you type another code, and offers it under every parent place at every level, so a collector in a district with no village on the list can still answer. A text question that asks for the answer is added right after it, shown only when "Other (specify)" is chosen; if the form already has one, it is used instead. It works offline, stays when the list changes, and travels in the XLSForm as cl::other. Publishing counts it as covering every parent of a cascade.

Nationality and Country of origin are platform lists too, drawn from the countries table in every language the workspace uses. A nationality question may be bound to the person's nationality.

A list the platform holds is the same on every form that uses it, so answers can be compared across forms without matching labels by hand.

Agrupar perguntas em secções

Select the questions that belong together, by ticking them or with a Ctrl or Cmd click, and choose Create section with selected. The section takes a heading of its own, in each of your workspace languages, and its settings open so you can decide how it behaves. Move to section adds questions to a section that already exists.

A section can show all of its questions on the same screen, it can repeat, and it can carry a condition of its own. Its Shown on setting (both, only when a data collector fills the form, or only when the respondent fills it) applies to every question in it. Removing a section asks whether to ungroup it, which keeps every question and removes only the section, or to delete everything in it. Deleting questions that already hold answers asks you to confirm how many answers go with them.

Repeating a section

A repeating section asks its questions once for each entry, for example once for each child in a household. You choose how many entries there are: the person filling the form adds them as they go, a fixed number, as many as the answer to an earlier question, or as many as an expression gives. A section shown on one screen cannot contain a repeat.

A repeating section that already holds entries cannot be switched off or ungrouped, so entries that have been collected are never lost that way.

A calculation can also read a repeating section as a whole, with one of the functions below, for example how many people a roster lists, or a year of monthly revenue. To count only the entries that match a condition, such as how many of the workers are women, add a calculation inside the section that is 1 for a matching entry and 0 otherwise, and total it. The value follows the entries as they are added or removed, and is worked out again when the response is submitted.

  • count() the number of entries
  • sum() the total of one of its questions
  • min() the smallest value of one of its questions
  • max() the largest value of one of its questions
  • avg() the average of one of its questions

Importing an XLSForm

A form can also be built from an XLSForm workbook, the format KoboToolbox, ODK and SurveyCTO use. Import it from the Design tab, and upload the workbook again later to update the form. The import reports anything it could not apply, names a group too long for one phone screen and any rule that reads a later question, and keeps the columns it does not interpret so that they are exported back unchanged.

Each upload that is applied is recorded with its file name, who uploaded it and when, and the workbook itself can be downloaded again. The template offered on the import page carries a GUIDE sheet that explains what the importer accepts.

Photos are made smaller before they are sent: the phone draws each one down to the form's largest photo size (1,600 pixels on the long edge unless you choose less in the form's Settings) and removes its location and camera details. Anything that arrives larger, or still carrying those details, is made smaller on the server the same way, in the background, once; a copy 320 pixels on its long edge is made at the same time, and pages show that copy until you open the photo. A voice note is recorded in mono at about 32 kilobits a second. One response may hold at most 200 MB of files together, and each file has its question's own limit; the page says which limit was reached.

A new import leaves undecided each setting the workbook's commonlynk sheet does not set: the form type, and the respondent group with where respondents come from. The import report names them; decide them in the form's Settings before publishing.

Forms → Import XLSForm creates a new form, and is linked from the forms list and its empty state. To replace a form you already have and keep its responses, use Import XLSForm on that form’s own Design tab, which matches your questions by their name column and updates them in place.

The form’s title is stored in the language the workbook declares, so an English title never lands in the Arabic slot.

A workbook may carry a commonlynk sheet (its bilingual title, the register the form is about, how it is scored) and cl:: columns: one set for scoring each question, and cl::bound, which shows a note with the question after it. CommonLynk reads these and applies the ones it recognises; a value it does not recognise is reported and left for you to set, never applied silently. They are optional, so a plain Kobo, SurveyCTO or ODK file imports unchanged. Exported, a bound note is an ordinary note that keeps its cl::bound marker, so importing the file again restores it.

A pattern (regex) must check an answer the same way on the phone as on the server, so a pattern the phone cannot check is refused when the form is written: in the question editor, and when a workbook is imported, naming the question and the part of the pattern. The cases are possessive quantifiers (a++), atomic and conditional groups, \N{…}, octal escapes such as \0, and a negated escape inside square brackets such as [\D]; inside a relevant, a calculation or a constraint joined with or, inline flags such as (?i) are refused too. Rewrite the pattern without them.

A rule on a date can compare it with the day the answer is given, using the function below, so a date can be kept out of the future, or the date of a next visit kept after today. A response collected offline is checked against the day it was collected, not the day it reached the server, and a response already submitted is never checked again against a later day. If a device did not report when it collected a response, the answer is kept and flagged for review rather than refused.

  • today() the day the answer is given, in the workspace's time zone

Ordenar as perguntas

Cada cartão de pergunta tem uma pega de arrastamento. Segure-a, arraste o cartão para cima ou para baixo até à posição pretendida, e a nova ordem é guardada no momento em que o larga. Não existe um passo separado para guardar a ordem nem numeração a manter atualizada manualmente.