Plan a questionnaire (questionnaire development)
In brief
A questionnaire plan is the basis for everything that follows: export, paper form, data entry form and analysis. On the page "Plan a questionnaire" you create pages, questions and answers, see the preview at once and have the plan checked against fixed rules. You do not need any data for this.
How it works in Statable
- On the start page open "Plan a questionnaire" (address #fragebogen) and choose "Create new questionnaire". Or open an existing file: a Statable questionnaire file or an XLSForm (the Excel form used by KoboToolbox and ODK).
- The outline is on the left. "Add page", "Add question", "Add block" and "Add note" create new parts after the selected element. A template (for example agreement in five levels) gives a ready-made start that you can change freely.
- In the middle you edit the selected element: question text, help text, answer list, required and more, with a separate field for every language. On the right the preview shows the page as respondents see it, on a computer or on a phone.
- Under "Findings" you see the errors and notes of the check. A button takes you straight to the element for each finding.
- With "Save as file" you get a file .statable-fragebogen.json. If a project is open, the questionnaire is saved automatically along with the project.
With the keyboard
- In the outline the up and down arrow keys select the element. Home and End jump to the first and the last.
- Alt plus up or down arrow moves the selected element. Statable announces where it is now.
- Delete deletes the selected element after a confirmation. Enter jumps to the form. Ctrl+Z undoes the last change.
Key terms
- Answer list: the answers respondents choose from. Every answer has a code (a number that appears in the data) and a text. You create a list once and use it in many questions ("used in 5 questions"). Every answer level needs a text, even if it is not visible. Otherwise people with a screen reader only hear numbers.
- Missing code: a code for "don't know" (-8), "no answer" (-9) or "does not apply" (-7). It appears in the data but later does not count as a valid answer.
- Filter (condition): a question is only shown if an earlier answer fits, for example "Only show if 'Do you smoke?' = 'Yes'". You choose question, comparison and answer from lists; you do not have to type text. A filter can only point to earlier questions. "Not shown because of a filter" is something other than "not answered". Statable keeps the two apart.
- Block: several statements with the same answers, for example a table of agreement. On a phone it becomes a sequence of groups. Reverse means: a statement is worded in the opposite direction, and its values are turned around later.
- Level of measurement: nominal means categories without order (colours). Ordinal has an order but unclear distances (satisfied, very satisfied). Scale level has equal distances (age in years). The level goes into the codebook.
- Codebook: the description of every column of the later data, with name, label, answer values, missing codes and level. You change names and labels in the "Codebook" view.
- Pretest: a trial with a few people before the survey starts. Pretest mode adds a comment field to every question.
Images and names
Every image needs alternative text in every language. It describes what the image shows. People with a screen reader hear only that. The name of a question becomes the variable name in the data: it starts with a letter, consists of letters, digits and underscore, has no umlauts and at most 32 characters. Statable suggests a name from the question text; you can change it.
Templates
Statable has templates for agreement, satisfaction and frequency (five levels each), yes or no, age, gender, highest qualification and consent. The texts are our own wording and only suggestions. For gender an open field is included because not everyone can be covered by fixed answers. For qualification, adapt the levels to the country of your respondents. A consent needs the wording of your study and your ethics committee.
Exports
The button "Export (file formats)" opens a list of ten formats. File names are made from the title of the questionnaire, and after saving Statable announces the file name. If the questionnaire has errors in the check of the rules, export is blocked: Statable names the first error and a button takes you to it.
- XLSForm (Excel format for KoboToolbox and ODK), SurveyJS (JSON description for your own web pages) and LimeSurvey (survey text format). The LimeSurvey export has not yet been tested with LimeSurvey itself; the menu says so too.
- PSPP syntax: a command file with labels, value labels, missing values and measurement levels for the data of this questionnaire.
- Codebook (Word), questionnaire (Word) and questionnaire (HTML): readable versions to pass on. The HTML is for reading, not for filling in.
- With several languages you choose in the menu which language the file is made in. A missing language is never silently replaced by another.
Pretest
A pretest is a trial run with a few people before the survey starts (cognitive pretesting: the people say how they understand a question). Switch on "Pretest mode (comment per question)" in the settings: the preview then shows a comment field under each question. With "Keep run (pretest)" in the preview you collect the comments of a run; "Read comments from the data" reads columns "<name>_kommentar" from the open data. Each question then shows the number of its comments in the outline and the list in the form. With an open project the collected comments are saved with the project (in the project file); without a project they stay a draft in this session and move into the project with "Move into the project". Statable never changes a question itself: what you make of the comments is up to you.
Paper versions (standard, large print, braille-ready text version)
All three are made from the plan, have a field "Questionnaire number" on top and number the questions consecutively. If an answer skips a whole page, that question says "Go to question …".
- Paper form, standard (Word): tick boxes with the code small next to them. The file has no corner marks; Statable has no recognition of the crosses.
- Paper form, large print (Word): font 18 point, line spacing 1.5, one column, the answers as a list instead of a table, no italics. RNIB names 16 point as the lower limit for large print; 18 point and 1.5 are Statable's own choice above that.
- Braille-ready text version: plain text without tables and boxes. On top is the instruction "Write down the number of your answer for each question.", each answer is on its own line as "1 = …", filters are written out. It suits braille transcription programs and reading aloud. Optionally it is also saved as a plain Word file.
- You then type the returned forms in using the entry form: the numbers of the answers are the same codes as in the dataset.
Encrypt answers
When respondents return their answers without a server, the answers are encrypted on their device. For this you need a key. It has two parts: the public key (it starts with "age1") is part of the questionnaire and may be seen by everyone. It can only lock. The private key opens the answers. It only lives in your key file (.statable-schluessel), and that file is itself protected with your password.
- On the page "Plan a questionnaire" open the section "Encrypt answers (key)" and choose "Create a new key pair". Enter a name and the password (twice); the password needs at least 8 characters.
- Statable saves the key file as a download. Now put two copies in different places, for example on a USB stick and on your university drive. Only when you tick "I have backed up the file" does Statable put the public key into the questionnaire.
- If you already have a key file, choose "Use an existing key", pick the file and enter the password. Then only the public key goes into the questionnaire. The private key stays in memory in this session and is not saved anywhere; after closing or reloading the page you have to open the file again.
Why two copies? Without the key file and the password nobody can open the answers, not even Statable. Statable does not know your private key or your password and cannot restore them. If the file is lost, all answers encrypted with it stay unreadable for good.
One-time codes and response rate
A one-time code (participation code) is a short access code like "7K3M-QRTV" that each invited person gets exactly once. In the section "One-time codes (participation codes)" you switch on "Require a code", choose the number and press "Create codes". The codes contain no I, L, O or U so that nothing gets mixed up; they come from the browser's random number generator and are all different within the list. You save the list as CSV or as a Word file with one row per code, to cut out. With the tick "issued" you note which codes have already been handed out. The list stays in the project; it is not in the questionnaire file, otherwise someone could read off valid codes.
Without a server, filling in twice can only be detected, not prevented. If the same person takes part twice, the same code comes back twice; Statable marks this but decides nothing on its own.
Response rate: it says what share of those invited answered. The professional association AAPOR (Standard Definitions, 10th edition 2023, pages 85 to 88) requires saying exactly which rate is meant. Statable puts every issued code into one of three groups and calculates two rates:
- Complete: the code came back and at least as many of the shown required questions are answered as the limit says (default 80 percent). Partial: came back, but below the limit. Not returned: no form, or an empty form.
- Response rate 1 (RR1) = complete / (complete + partial + not returned). This is the strictest rate: only complete forms count as answers.
- Response rate 2 (RR2) = (complete + partial) / (complete + partial + not returned). Partly filled forms count too.
- Example: 40 codes issued, 22 complete, 4 partial, 14 not returned. RR1 = 22 / 40 = 0.55. RR2 = 26 / 40 = 0.65. All issued codes count as valid invitations; Statable estimates nothing on top.
You set the limit between "complete" and "partial" before looking at the answers, and state it in the report. Moving it afterwards lets anyone improve the rate at will.
When there is no rate: with an open link or a file without codes nobody knows how many people saw the link, and there is no list of those invited (no sampling frame). Then, according to AAPOR, there is no response rate. Statable only gives the number of answers received; that is a self-selected sample, not a random sample. The same applies if codes were created but never marked as "issued".
Read in answers (bulk import)
Bulk import means that Statable opens many encrypted answers at once. In the section "Read in answers (bulk import, response rate)" you first set the threshold for "complete" (default 80 percent of the required questions shown), and you do this before you look at any answers. Then you give the key: if it is already open in this session Statable uses it; otherwise you choose the key file and enter the password. Opening takes about a second. Then you choose many answer files or a whole folder, drag them into the field or paste answer text (armor text: the answer as a string of letters and numbers that begins with "-----BEGIN AGE ENCRYPTED FILE-----"). "Read in" starts the check.
The table shows a state in words for every answer: accepted, duplicate (the same answer was already read in, the first one stays), different questionnaire, different version (is accepted; Statable names the items that no longer exist in the questionnaire), unknown code, code used more than once, without code, cannot be decrypted (wrong key) or damaged. For "without code", "unknown code", "code used more than once" and "different version" you decide yourself with the tick "accept"; Statable never decides this alone.
Below is the response. With one-time codes Statable shows the numbers I (complete), P (partial) and NC (not returned) and RR1 and RR2 with the formula. Without codes it only shows the number of answers received. "Open as data set" turns the accepted answers into a data set with a codebook; the protocol is available as text and as a Word file, with the threshold in it.
Data protection templates (participant information and consent)
Participant information is the text that tells respondents before they fill in what the survey is for, how long it takes, who can see the answers and when they are deleted. Consent is the respondents' agreement to it (under GDPR Article 6(1)(a); it can be withdrawn at any time under Article 7(3)). In the section "Participant information and consent (data protection template)" you fill in a small form (purpose, duration, deletion period, contact, responsible body, return routes) and choose "Insert texts into the questionnaire". If there is text already, Statable asks first. What you still have to enter yourself is in square brackets; Statable counts these places. "Save as Word" gives the same texts as a file.
Framing texts: in the section "Introduction, consent and closing (framing texts)" you edit per language the introduction, the consent (with a "Required" switch) and the closing text. You adapt the texts of the data protection template here; places in square brackets must be replaced. An empty field removes the text. The return address (for example your email) belongs in the closing text; Statable sends nothing by itself.
Important: this is a template and not legal advice. Have your university or your data protection officer check the text before you send it out. As long as no answer passes through a Statable server, Statable is not a recipient of the data; the researcher or their university is responsible.
Send the questionnaire
Without a server you send the questionnaire in two ways. Both need a key first (see "Encrypt answers"). Both are in the export menu under "To send out".
- Questionnaire file (to fill in): a single HTML file. It runs in the browser without a network and contains everything, including the plan and the public key. It suits computers: send it by email, USB stick or learning platform, respondents open it with a double click in a browser.
- Link to fill in: a link that starts with "https://statable.eu/ausfuellen/". The questionnaire is inside the part after the "#", and that part never goes to a server. The link is the best way for phones. If it is longer than 8,000 characters, Statable suggests the file, because messengers shorten long links. There would then be no readable questionnaire any more.
Why not the file on a phone? iPhone and Android often open an attached HTML file only as a preview, and a preview runs no scripts. Respondents then see a page with the sentence "Please open this file in the browser" instead of the questionnaire. So send phones the link.
How do answers come back? At the end the page "Almost done: return your answer" shows four ways, all of equal standing: save the answer as a file, share the answer (only if the device can), copy the answer text (the text is also in a box to select by hand) and, in addition, a QR code if the answer fits. The QR code is never the only way. Where to send the answer is shown on the final page; put your email address into the closing text of the questionnaire. Statable itself sends nothing.
Progress: whoever interrupts the questionnaire can continue later on the same device. The browser remembers the answers so far only on this device. After the return the saved progress is deleted.
Taking part more than once: without a server, filling in twice can only be detected, not prevented. You can detect it by the identifier of each answer and, if you use one-time codes, by duplicate codes.
The page encrypts in the browser. For that it needs a secure connection (https) or a locally opened file. Otherwise it shows a sentence telling you to open the link with https. A locally opened file is checked in Chrome and Edge; in Firefox and Safari this is not yet checked.
Survey station: one device for many respondents
The survey station is for a tablet or laptop where many people fill in the same questionnaire one after another, for example in a class or at an information stand. You open it in the export menu under "To send out" with "Open survey station (one device for many)". This works only with a key for the answers.
- Who sees what? The respondent sees only the questionnaire. After submitting, the answer is encrypted at once and stored on the device only in encrypted form. The next person sees nothing of it, and neither does the person in charge. Only someone with the key file and the password can read the answers.
- Backing up: at the bottom the station counts how many answers are not yet backed up. After every fifth answer it reminds you. "Save backup file" writes a text file with all answers not yet backed up. You read this file in again later with "Read in answers" (bulk import).
- Ending: the station ends only via "End station" with a confirmation. If answers are not yet backed up, Statable offers the backup file first. There is no PIN protection: whoever sits at the device can end the station.
- Safari and iPad: the browser may delete stored website data when the page has not been used for 7 days. Please back up after every session.
Not true - this is how it is
Limits
- A filter can only point to earlier questions. Nested filters from an imported file can be viewed and removed but not rebuilt in the form.
- Statable only recognises impossible filters in simple cases (for example an answer that is not in the list).
- From an XLSForm Statable takes what it knows. What is skipped or converted is listed in the messages on opening. Nothing happens silently.
Take away
- A questionnaire plan is the basis for everything that follows: export, paper form, data entry form and analysis.
- Statable checks your questions against fixed rules. The notes are suggestions. You decide what fits.
- Every answer level needs a text, even if it is not visible. Otherwise people with a screen reader only hear numbers.
- "Not shown because of a filter" is something other than "not answered". Statable keeps the two apart.