Label Sets

Label Sets

General

Label sets are list templates where each list has a set of codes with labels and can be used in most question types either as answers or as sub-questions. Please bear in mind that LimeSurvey's label sets are merely copied to the particular question as sub-questions or answers. Therefore, if you change a label set after you 'used' it in a questionnaire, the changes will not propagate to the questions from the questionnaire where the respective label set is utilized.

This new usage of label sets gives much more flexibility for future development and makes the structure of a question more logical.

Important.png Attention: A label set must contain the same base language as the survey, or you will not be able to use it for any question of your survey.
Below is a label set example to help you better grasp the concept.

If you want to define a custom 7-point scale, a label set provides this function. In the example from below, a very simple custom label set with the code/label pairs (the label is what appears in the actual questions).

Code
Label
1
Not useful at all
2
2
3
3
4
Somewhat useful
5
5
6
6
7
Very useful

Below is a graphical example where three different smileys are used instead of label text:


3xSmiley-Question.gif

Label sets - how to...

Click Label sets in the Configuration menu to edit, create, delete, import, and/or export label sets.



...create or import new label set(s)

Click the Create or import new label set(s) button located in the upper-left corner of the page. You can either create a new label set or import it from another source.
  • New label set: Label sets must be manually created.
    • Set Name: Each new label set has to be given a name.
    • Languages: Every label set must be specified for the language it's used for. You can choose as many languages from the menu as you want.
  • Import label set(s): to import a label set, click browse and add the .lsl label set file. If you have previously created a label set, then LimeSurvey will not allow you import a similar external label set unless you turn off the Don't import if label set already exists option.

Once the label was imported or created, click on the Save button located in the right-upper part of the screen.

Save Close.jpg

Help.png If you import a whole survey, the label sets are imported too (with the questions). Duplicated label sets are ignored.

...edit, delete, or export a label set

  • Each label set located in the Label sets list has a corresponding menu that contains the following four options:

Edit menu labels.png

  • View labels: Allows the user to view the existing labels located in the respective label set.
  • Edit label set: The user can rename the label set and/or add/remove languages.
  • Export label set: Export label set to a .lsl file.
  • Delete label set: A window will pop up in order to confirm whether you want to delete the respective label set or not.

Labels - how to...

...add a label

  1. You must fill in a label code, an assessment value, and a label description.

Labels table.png

Then, click the plus sign Add label.png to add the new label. It's possible to use a graphic instead of (or in addition to) a label text. To do that, you must use HTML-code to include the graphic you want, e.g.:
<img border="0" src="http://www.yourdomain.at/pics/pic.gif%22">

Help.png Read also our wiki on assessments. The column is ignored if you set all the values to 0.
To help with the editing process of the HTML-code, use the embedded HTML editor of LimeSurvey, which is located at the end of the label-text box (click on the green pen button ->0.85px).

Quick add

Another way to add labels is to use the Quick add... button. When you click it, a window will be displayed. It works under the following form: Code ; Title.

0.8px

You can either replace or add labels. If you click Replace, all the preexisting labels will be deleted and replaced by the ones entered by you. If you click Add, the new labels will be added into the label set (the preexisting ones not being affected)
.

0.8px

The 
Code is automatically added if new entrances are created. Therefore, you can type in only the title of the labels which will automatically be assigned a code:

0.8px

0.8px
The assessment values cannot be edited/entered via this option - it has to be changed manually from the list of labels.

Important.png Attention: If you wish to translate labels by using the Quick add... function, you need to add the translation on the same line(s) and be separated by a semicolon.

...delete a label

To delete a label, click the red trash button (0.85px) located under the 'Action' column.

...rearrange a label

To rearrange the order of the labels, click the green sign (0.85px) located under the column called 'Position' and re-position the label.

...add a new language

To add a new language: Create or import new label set(s) -> Languages -> select the languages you wish to add.

To start translating the labels into another language, select the language in which you would like to translate the labels to from the upper part of the matrix.

Labels switch language.png

Labels 4lang ro.png

Every label needs a co
de, an assessment value, and a description (as mentioned above). While the label description can be edited for all language options, label codes and assessment values can be edited only from the first language option that is located on the languages toolbar of the matrix. The order of the languages is alphabetical and cannot be changed.

In the example, the language from where the label codes and assessment values can be changed is English. Only the label description can be edited when the Romanian tab is selected - which represents the corresponding Romanian label translation of the English label.

Once you are done with the changes, do not forget to click Save changes, located in the upper-right part of the screen.
Save changes close.png

Examples

Before reading further, take a refer to the article on how to create surveys since it is already assumed in the examples from below that you have already created your survey.

The screenshots used below are from LimeSurvey 3.0, the interface being slightly different from the last LimeSurvey 2.xx release.

I want to use a label set as an answer list for one question

Help.png All the label sets that are displayed under Configuration -> Label sets are called predefined label sets. They can be used either as sub-questions or as answers.

Assuming that the label set and survey are created:

  • Go to the structure of the survey and create a question group - About LimeSurvey.

CreateQuestionGroup.png

  • Click the Structure tab and then on the newly created question group (About LimeSurvey in our case). Look for group quick actions and choose Add new question to group:

AddNewQuestiontoGroup.png

  • Type in the code and text of the question.
  • To use a label set as a set of answers, pick the right type of question that can make use of label sets. The array question type is selected in our example:

ArrayQuestionTypeLabelSets.png

  • Save the question to add it into your question group.
  • Once created, you will have to add sub-questions and answers:

EditSubquestionsandAnswerOptions.png

Help.png Please note that not all question types ask for sub-questions and/or answers!
  • Add at least one sub-question:

ArraySubquestions.png

  • Add answer options. Predefined label sets... option will be used:

EditAnswerOptions.png

  • Select the label set you want to use:

0.7px
The result should look like the following:

EditAnswerOptionsResults.png
  • Save & preview the question:

LabelSetsFinal.png


I want to use labels in another language as answers

Before reading this example:
Create a label set and select the other languages you would like to use in your survey.
Edit your survey (Settings -> General Settings) by adding the additional languages you want to translate to. Refer to the follow article for details on creating surveys.


Assuming that the label set and survey are created:
  • Create a question that can make use of label sets (e.g. array question type):

Important.png Attention: Do not forget to select the language you want to translate to from the languages toolbar!
  • Because the array question type is selected, both the sub-questions and answers need to be translated.

EditSubquestionsandAnswerOptions.png
  • Translate the sub-questions. Do not forget to select the right language tab for translation:

ExampleAddLanguageSubquestions.png
  • Translate the answers. However, because we use predefined label sets, select the right language tab to add the translated label set as answer options:

AvailableLabelSetsRomanian.png

ExampleEditAnswerOptionsRomanian.png
  • Save & Preview the survey:

PreviewAddRomanianLabels.png
I want to use emoticons instead of label text

To use emoticons (or any other graphics) , you must use the embedded HTML editor when creating labels.

Assuming that the survey is created:
  • Create a label set and access it. Instead of writing in the Title column, open the HTML editor by clicking on the green pen and add graphics instead of text:

GreenPenButtonHTMLLabels.png

InlineMode1.PNG

The HTML editor offers you a more comprehensive view on how different options can be used to enhance your survey. It is not necessary to have HTML knowledge because the toolbar is self-explaining (for further details you can either hover the mouse over the options or click on that option for more details).

By using such an editor, you can also add (for example) smileys, images and/or videos that are either hosted online or on your server. In this example. three smileys have been added:

SmileysLabelsExample.png
  • Create a question that can make use of label sets as predefined answers (e.g. array question type):

New Question Label Sets Emoticons.png

  • Edit the sub-questions and the answer options

EditSubquestionsandAnswerOptions.png
  • Set predefined labels as answer options.

SmileysLabelsExample.png

  • Save and preview the question:

Preview Label Set Emoticons.png

I want to import a label set and use it as a sub-question list

Assuming that the survey is created:

Optional: Access the LimeSurvey templates database and download the one you wish to use - .lsl file format (Australian states in our example).
  • Go to Configuration and click Manage label sets button.
  • Click Create or import new label set(s) (in the upper-left side of the screen) -> Import label set(s)Browse your computer and select the .lsl file (the label set format).

ImportaNewLabel.png
  • Now that the label set was uploaded, create a question that requires the usage of sub-questions (array question types).
  • Edit sub-questions.

EditSubquestionsandAnswerOptions.png
  • Load the imported label set:
Australia Code Label.png
Australia Label Set.png
  • Save and preview.

Australia Save and Preview.png

    • Related Articles

    • Introduction

      General Advanced is the first menu under Configuration located in the top navigation bar of the home page. The functionality here can be used to change survey themes, add/edit label sets, check for data consistency, and do a backup of your database. ...
    • Overview - Configuration Tab

      General The Configuration tab contains three menus: Advanced, Users, and Settings. Advanced menu The functionality here can be used to change survey themes, add/edit label sets, check for data consistency, and do a backup of your database. It also ...
    • Menu Entries Configuration

      General To access the Survey Menu entries table: Configuration -> Settings -> Survey menu entries This function allows you to create, edit or delete survey menu entries. To be visible/displayed, these entries have to be added into a menu. Menu ...
    • Manage Users

      User management The user management tool allows you to add additional administration users to LimeSurvey. We refer to them as 'users'.  Do not confuse them with survey participants. Add users To add a new user, under Configuration (located on the ...
    • Home Page Settings

      General Use the Dashboard to customize your home page: Configuration-> Settings -> Dashboard Besides editing home page settings, new boxes (for different user groups) can be created to facilitate the management of your LimeSurvey installation. ...