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 1 of X questions at a Limesurvey survey

Limesurvey offers various randomization features. One common randomization use case is showing different versions of a question at a Limesurvey survey. To do so, you need to randomly show one of the X question versions to the user so the first step would be to generate a random number between 1-X. For this we can use [...] 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