This is the print version. Click here for the web version of this tutorial

LimeSurvey Tutorial

Radboud University Nijmegen, Faculty of Social Sciences

Pieter van Groenestijn
Wilbert van Ham
Willem van der Veld

Limesurvey, 1 Introduction

Making surveys in Limesurvey

Authors:
Pieter van Groenestijn
Wilbert van Ham
William van der Veld

This tutorial has been written for the Faculty of Social Sciences of the Radboud University.

Introduction

Limesurvey is a free and open source survey creation and publication tool. This means that you have the right install it, to use it, to alter it, to sell it, to give it away and to keep using it whenever and wherever you want. In this tutorial you will learn to use Limesurvey version 7 as it is installed on the Radboud University, Faculty of Social Sciences web server.

Limesurvey is made for scientific use. It can do much more than most other cloud based survey tools. Surveys with hunderds of questions, thousands of participants and complicated survey logic are possible. Fortunately most is under the hood. All you need to make a survey is a computer and a webbrowser. You will only touch the keyboard for typing questions and answer options. No programming skills required. Guaranteed!

This tutorial

This tutorial will start with the simplest possible survey that will only ask the participants name and some demographics. It will use the new editor that was introduced in Limesurvey version 7 for this. It looks much like the WYSIWYG tools that Google, Microsoft, Surf Works (Nextcloud), Qualtrics, ... offer.

After that we will show you some complicated tricks that allow thing that only advanced survey tools like Qualtrics offer. For some of these more complicated tricks we will use the classic editor

This tutorial will only briefly look at the problem of data analysis. You will see that Limesurvey can export survey structure, data and codebook to a large number of file formats, allowing data analysis is SPSS, Excel, R, Python Pandas, Matlab or whatever you like. It also has a few analysis tools itself, mainly for observing survey progress.

Let's make a survey.

Continue with the next lesson

Limesurvey, 2 My first survey

In this lesson you will log on to Limesurvey and make your first survey. Let's go to the Limesurvey administrative interface. You may want to open it in a second browser window. (right click -> Open Link in New Window)

Getting Started

Log on with your university Microsoft email address. If you are already logged on to some other system you only select this address and no credentials need to be entered. This tutorial assumes that you are using the English language interface. If your operating system has another language then you must select "English" as interface language here. Chosing the "Default" language will present you with an interface in your own language. The interface language is independent of the language of the surveys that you make. You will select the survey language later.

logon screen

Now you will see the welcome screen. Make sure that your university number (top right) is correct.

First Run

First time you log on to Limesurvey you will get a quick tour of the New Survey Editor in the form of an interactive tour. It will show you the following:

welcome to this tour

Click the right arrow. If you do not get the interactive tour, no problem, just follow the steps in this tutorial. canvas

Change the welcome text. Let people know we will ask a few questions about family life.

title

Well, that will be the survey title then: Family Life.

type

edit delete

Don't do that, we will need this question later on.

sttings

reorder

options0

options1

Yes, do try the options, but do know: In der Beschränkung zeigt sich erst der Meister

Note that there is also a Classic Editor that we will use at the end of this tutorial for some advanced features, but for now we will be using the New Editor. When using the classic editor, make sure you save your changes after each edit.

Do try this.

Continuing with the first survey

The interactive tour made a survey for you with a welcome screen, a question group and an end screen. You added a Multiple Choice Question.

You did not yet use the survey settings. Click the cog icon ( ⚙ ) for this. Make sure you select English as the base language of your survey.

Now scroll to the bottom of that page. Check your e-mail address.

Running the survey

Press the eye icon in the top right for a test run of your first survey. No data will be saved because the survey has not been activated yet. The survey contains a welcome page, a question page and a goodbye page.

goodbye

You can close the browser tab after completing the survey.

Continue with the next lesson

Limesurvey, 3 Questions and question groups

In this lesson we will extend our first survey with some questions of different types. The number of images will go down. This is not kindergarten ;-)

First change the type of the only question in your survey to Short text in Question settings. By default the number of allowed characters is 500. You may want to reduce it. No-one has a name this long, not even Mr. Van Amsberg*.

Now add another question. Click the plus (+) button for this.

plus

Select Numerical input. Enter the question text What is your age in years? and change the question code in age. The question code is what Limesurvey uses internally to keep track of the answer and what will later appear as variable name in your data file. The question code will not be visible for the participant, but it is convenient to pick meaningful names in case you want to refer to a question answer later on in the survey.

Limiting age to numbers is not enough. We all know that the maximum age that anyone can ever reach is 120 years*. Let's make sure the participant cannot enter a number larger than 120. Use the Question settings -> Advanced -> Input to limit the possible answers.

preview your your survey with the eye icon in the top left. What happens if you enter an invalid value?

Adding a question group

The questions in Limesurvey are grouped in question groups. You can think of a question group as a page. The survey participant will see one question group at a time. Click the plus ( + ) that you also use to add a question

plus

Click in the top left to add a question group

Just like the survey itself, the question group needs a title. Call it Marital Status. We also didn't give the first group a title yet. Call it Background

Add a question asking the participants if they are married. Pick a suitable question type, for instance (radio) The participant will now only be able to pick one predefined option. Test run the question to see what it looks like. You need not test run the entire survey. You can preview only this question group by clicking the eye icon ( ) in the question group toolbar above the question allows you to test run the question group without running the entire survey.

Do you want to know more about question validation? Look up validation in the advanced section of this tutorial.

More complicated question types

One of the ways that Limesurvey can be extended is by adding question types. We will see some in the advanced section of this tutorial.

Continue with the next lesson

Limesurvey, 4 Routing Conditions

Routing is the process of determining a route through your survey. For instance, after asking the age of a person in question 1, you can decide what the next question has to be. If the age is more than 18, you can for instance go to question 2 about marriage and later skip question 3, otherwise skip question 2 and go to question 3 about toys. Tradionally routing is hard and leads to complicated graphs with many arrows and complicated if this, then that statements. Fortunately Limesurvey decided to stop using routing altogether from version 2.0 onward. Rejoice! We are using version 7. You will never, ever have to learn about routing.

Instead of routing (remember, routing is bad, complicated and error prone) Limesurvey uses the concept of Conditions (formerly called Relevance). Conditions are good, trivial to use and can stop global warming, war and bad music. All you have to do is decide for each question group, question or subquestion whether it is relevant given the circumstances. You do this in the Condition field.

Now go back to our survey Family Life. Go to the question group Marital status to the question Are you married

It does not make much sense to ask this question to minors, so whe will make it isvisible for people under the age of 18

Click on the question text and in the lower right select the + in front of New logic Select the previous question that th econdition depends on, the comparison operator and enter the Free value 18:

After setting the condition in this way, you can see the condition that you just constructed with the condition designer in the Question settings -> Condition field. It will say something like age >= 18 but likely a bit obscured by parentheses and extra code:

It is usually necessary that you put this question in a new question group. If the question about age would be in the same group as the question about marriage, then the latter cannot appear conditionally. It wil be there always or never. Question groups do not change once they are shown on the screen. (Well that that used to be the case, but it is still best practice not to change a page once it has been shown to the participant.)

Test the entire survey by hovering over the eye icon in the top right and clicking English. Try it twice. Once using 12 for age, once using 20 for age. Do you notice that the question about mariage is only shown if it is relevant? That is what the condition field is all about. By default there is a 1 in this field. That means true. You can replace it with 0, which would make the question always irrelevant

Group and subquestion conditions

Conditions can be set for whole question groups and for subquestions as well. You cannot use the condition designer however. You can enter the condition directly in the Group settings -> conditon field after clicking the group title. A condition of 1 means always:

A condition of 0 would mean never

For subquestions it works the same way as for question groups. You must enter the condtions manually

If you like the conditon designer and you want to use it for a question group or a subquestion, feel feel to design the condition for a question and then copy-paste it to the conditon field of the question group or subquestion.

More complicated conditions

To replace routing, more complex relevance equations are necessary too:

You may want set two conditions to prevent certain people from entering your survey.
age>17 && name!="Elizabeth Taylor"
Or make exceptions to allow some to marry younger.
age>17 || name=="Bo Derek"

Continue with the next lesson

Limesurvey, 5 Random

Why do the questions in the Background question group appear in this order? It may be undesirable to always let them appear in the same order. In Limesurvey we can easily shuffle questions groups, questions, subquestions or answer options. By default each question stays at its own place. If you want it trade places with another one, these questions must be in the same randomization group. For question groups, this setting is in the group settings on the right side of the screen. For questions, where its use is less common, this setting is in the the advanced settings -> Logic.

Let's set the randomization group of both questions in the Background question group to shuffle.

Make sure you type the exact same randomization group name for both, or it will not work.

To test the randomization you must preview the whole survey from the survey toolbar. Previewing the question group will not show the questions in randomized order.

More complcated example

Imagine you want to have more control over the question order. You want the first and last question to stay in place and the others to be shuffled. Proceed as shown in the following table:

QuestionRandomization group
How where you feeling last year?fixed1
How do you do?shuffle
How are you?shuffle
Are you all right?shuffle
How will you be feeling next year?fixed2

What would have happened if the first and last question both had the randomization group fixed?

Continue with the next lesson

Limesurvey, 6 Expressions and tokens

According to my dictionary, an expression is the act or an instance of transforming ideas into words. The text age>=18 in the chapter about routing is an example of an expression. The outcome of this expression was either true or false. The outcome of an expressions need not be true or false. It can be a number or a text as well. Let's try the latter.

Go back to the question that asks the name of the participant. Change the question code into name. Now go to the question about marriage. Click the question text. Put the cursor at the start and click ⋮ -> Placeholder fields -> name: What is your name. It will turn the question text into "{name.shown}, are you married?". name is the question code of a previous question. Limesurvey put curly brackets around it to distinguish it from normal text. The meaning of the additional .shown is not important for now, it would also work if you typed the text (including curly brackets) manually without it. See what happens if you run the whole survey.

Indeed, the participant sees a nice greeting with his or her name inserted.

Tokens

Often a survey participant will not type his own name. A list of special logins is made and invitations are send. Such special logins are called tokens in Limesurvey. If you use tokens, only invited people can enter the survey. Special expressions such as {TOKEN}, {TOKEN:FIRSTNAME} and {TOKEN:EMAIL} become valid. Feel free to play around with tokens, but do not forget to delete the token list before continueing with the tutorial. The tokens are also available from the Placeholder fields menu, but you can type them manually as well.

tokens

The advanced tutorial has some more examples on the use of expressions. For advanced sexpressions you usually type them manually.

Continue with the next lesson

Limesurvey, 7 A real life example

In this lesson it is you who does the work. Change your survey Family Life to be as close as possible to the following example survey. Not everything is possible. No more step-by-step pampering. Find your own solutions.

Well, a little bit of help to start with. You can have my Background question group if you like. Just click: ⊕ Add new group to survey -> Import question group -> Choose File -> Import question group and delete the old question group Background.

  1. What is your gender?
    1. Male
    2. Female
  2. How old have you become on your last birthday? _____________

The next questions are about past, present, and future family life.


  1. What was your marital status 5 years ago, in 2010? Answer the first option that applies to you.
    1. Married
    2. Co-habited
    3. Widowed
    4. Divorced
    5. Separated
    6. Single, never married
  2. What is your present marital status? Answer the first option that applies to you.
    1. Married --> TO Q.5, 6, 7
    2. Co-habited --> TO Q.5, 6, 7
    3. Widowed --> TO Q.5, 6
    4. Divorced --> TO Q.5, 7
    5. Separated --> TO Q.5, 6, 7
    6. Single, never married --> SKIP 5, 6, 7
  3. How old were you when you married (for the first time)? _____________ /WRITE THE EXACT AGE/
  4. YesNo
  5. Did you ever divorce?
    12
  6. Did you ever become a widow?
    12

INTERVIEWER, CHECK BY THE QUESTION 4 AND WRITE DOWN HERE – IS THE RESPONDENT MARRIED OR CO-HABITED.

  1. MARRIED --> TO Q.8
  2. CO-HABITED, SINGLE, DIVORCED, WIDOWED, SEPARATED --> TO Q.10
  1. How satisfied are you with your marriage at present?
    Not at all satisfied 1   2   3   4   5   6   7   8   9   10 Very much satisfied
  2. How would you describe your marriage?
    1. Very happy
    2. Pretty happy
    3. Not too happy
    4. Do not know
  3. Would you like to change anything in your family life?
    1. Yes --> TO Q.11
    2. No --> SKIP Q.11, 12
    3. Do not know --> SKIP Q.11, 12
  4. How are you going to change your family life? /MARK AS MANY AS MENTIONED/
    1. Will get married
    2. Will find a partner /new/
    3. Will get divorced, separated
    4. Will separate from parents, children
    5. Will have /more/ children, grandchildren
    6. Will live with the adult children
    7. Will spend more time with the family
    8. Children will get married
    9. Other /SPECIFY/ ____________________________________
    10. Do not know
  5. How likely, in your opinion, is it that your family life will be changed in the next 2 years?
    1. Very likely
    2. Somewhat likely
    3. Somewhat unlikely
    4. Not likely at all
    5. Do not know /DO NOT READ/
  6. How often do you feel....
    NeverRarelySometimesAlwaysDK
    1. That you lack companionship?
      1234(9)
    2. That there is no one you can turn to?
      1234(9)
    3. That you are no longer close to anyone?
      1234(9)
    4. Outgoing and friendly?
      1234(9)
    5. Close to people?
      1234(9)
    6. That no one really knows you well?
      1234(9)
    7. You can find companionship when you want it?
      1234(9)
    8. That there are people who really understand you?
      1234(9)
    9. That people are around you but not with you?
      1234(9)

Continue with the next lesson

Limesurvey, 8 Data analysis

Let's assume you activated this survey. You collected a lot of data. Now you click the responses icon R in the survey toolbar, you click Responses & statistics, you click the SPSS icon SPSS. In the following screen you click both Export syntax and Export data.

spss screen

If you use this syntax file to import the data file in IBM SPSS or GNU PSPP, you will see that not only the data is nicely exported, but the entire codebook is correctly exported as well:

spss screen

Here are an example syntax file and data file. Make sure you alter the data file name in the syntax file before executing it. This is only necessary in SPSS. PSPP will understand it right away.

Can you find the average age of the participants? The number of married participants? The average difference and average deviation from average of the current age and the age when marrying? What is the correlation between questions How satisfied you are with your marriage at present? and How you would describe your marriage?

Others

GNU PSPP and IBM SPSS are not the only two software packages capable of analysing our data. GNU R and Python Pandas are two other popular options. They cannot read the codebook created by Limesurvey, but they can analyze your data just as well. Try loading your data in one of them and getting the numbers asked above. This is what would give you the solution in Python Pandas:

import pandas as pd

d = pd.read_csv("survey.csv", usecols = range(4, 13), quotechar="'",
	names = ['gender','age','status5','status','age2','divorce','widow','satisfied','unhappy'])
d.age.mean()
(d.status==1).sum()
(d.age-d.age2).mean()
(d.age-d.age2).std()
d.satisfied.corr(d.unhappy)

This is what would give you the solution in GNU R:

d <- read.csv("survey.csv", head=FALSE, quote="'")
colnames(d) <- c('','','','', 'gender','age','status5','status','age2','divorce','widow','satisfied','unhappy')
mean(d[,'age'])
sum(d[,'status']==1)
mean(d[,'age']-d[,'age2'], na.rm=TRUE)
sd(d[,'age']-d[,'age2'], na.rm=TRUE)
cor(d[,'satisfied'], d[,'unhappy'], use='complete')

If you want to import the data in MS Excel, you must set the list separator to comma. In Europe its default setting is semicolon:

That was the last lesson of this beginner tutorial. There are some additional unordered lessons which you can access from the menu bar on the left.