LimeSurvey – Conditions based on token attributes

Sometimes you want to show certain questions of a survey to a specific user group only. With LimeSurvey this is no problem. If your survey is set to be non-anonymous and uses tokens, you can use user defined attributes for conditions. Here we describe the necessary steps. 1. Adding additional attributes Set the survey to be [...] read more

How to Randomly Show One of X Questions in LimeSurvey

There is no built-in option to randomly show 1  of X questions in LimeSurvey.This article shows a practical workaround using an Equation question and relevance conditions to randomly select and display exactly 1 of X questions per participant. The approach works reliably across different LimeSurvey versions and survey types. The Basic Idea: Randomly Show 1 [...] read more

How to use JavaScript at a LimeSurvey template or survey

LimeSurvey offers a lot of on board features but for certain issues you can add JavaScript to your survey to extend its abilities. Particularly when it comes to on-screen data validation, data filtering, setting default values or any kind of randomization, using JavaScript is the way to go and we have collected several workarounds in [...] read more

How to add your own favicon at a LimeSurvey template

A favicon is the little icon you see in the browser’s address bar, list of bookmarks or tab. You can display your own icon as follows: Create a favicon – google will find you lots of free favicon generators Name your new favicon “favicon.ico” and place it in your template directory. This can easily be [...] read more

How to restore data from a deactivated LimeSurvey survey

You might run into problems if you deactivate your survey at LimeSurvey instead of setting an expiry date (which we recommend to restrict access to a survey), because once a survey is deactivated, a backup of the results table “lime_survey_12345” (12345 refers to the survey ID) is created and it is renamed to “lime_old_survey_12345_20120101235959”. The [...] read more

How to conditionally hide/show groups in LimeSurvey

When first working with LimeSurvey’s condition designer, you might miss a feature to show/hide whole question groups. Doing this is quite obvious though: Set a condition on the first question of the group like “Show question X if question Y was answered ‘>=3’ “. Click the “copy conditions” icon at the condition editor. Select the [...] read more