Welcome, Guest
Username: Password: Remember me

TOPIC: Reference data as field/question type

Reference data as field/question type 6 months 4 weeks ago #107951

  • pievarolil
  • pievarolil's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
In my organization we have some standard reference data. This includes the way we code and name countries, group of countries, offices, etc.

I can see you started doing some of this when you created the question type Mask questions - Yes/No and Mask questions - Gender.

Can we add a Mask questions - Country? with our standard value (ISO 3-letter code) and label (the way we are asked to spell the country names.

Is there any documentation on how to do this? What would it happen to it next time we upgrade LimeSurvey?

Thanks!
Liliana
The administrator has disabled public write access.

Reference data as field/question type 6 months 4 weeks ago #107954

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2952
  • Thank you received: 378
  • Karma: 124
How about using label sets? This should be exactly what you are looking for.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: pievarolil

Reference data as field/question type 6 months 4 weeks ago #107955

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1147
  • Thank you received: 273
  • Karma: 79
Hello,
as said by Holch, you have to use labelset...
I don't now why but there is currently no labelset available in the download section of this website...

Nevertheless try to import the labelset attached (correspond to ISO_3166-1_alpha-3)

(Maybe you have to sort some countries)

Ben
Attachments:
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 6 months 4 weeks ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: pievarolil

Reference data as field/question type 6 months 3 weeks ago #107990

  • pievarolil
  • pievarolil's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Thank you for posting the data (label) file! Very easy to understand and reproduce.

If I want to have several languages, would I include all in the same lsl file or I have to create lsl per language?
The administrator has disabled public write access.

Reference data as field/question type 6 months 3 weeks ago #107991

  • pievarolil
  • pievarolil's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
A related question: For the people who are using LimeSurvey for an enterprise, how do you distribute these common lsl files? Do you have an application connected to your reference database to generate the lsl files?

We are planning to use LimeSurvey in my organization, but we are expecting end users to be creating the surveys and forms.
The administrator has disabled public write access.

Reference data as field/question type 6 months 3 weeks ago #107993

  • pievarolil
  • pievarolil's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
I have answered myself by exporting a question that was already translated.

The answer (to be confirmed by a non-fresh lemon) is that I have to add it to the same file. Each label in a <row> </row> under the same <rows> </rows>. <language> </language> will indicate for which language it is applicable. We can even have a different sort order. <code></code> will identify the "same" item.
The administrator has disabled public write access.

Reference data as field/question type 6 months 3 weeks ago #107994

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1147
  • Thank you received: 273
  • Karma: 79
Hi,
You can add one or more languages to your label set directly from the admin interface. Its easy and similar to adding a language to a survey...

label.gif


The only problem you may face is that options may not be sorted alphabetically for your added language..
In this case you can use a workaround as explained here
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Reference data as field/question type 6 months 3 weeks ago #108001

  • pievarolil
  • pievarolil's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
I was thinking of generating those lsl files from the data we have. So we have to have a script that will be able to sort the order by keeping the ids. We have at least 193 countries to update in 6 different languages, so doing this manually may not be the best thing. But I agree that for other/shorter lists, the GUI is very useful and easy to use.

I wonder if some other people have already come up with such scripts (outside LimeSurvey)...

Cheers,
Liliana
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.112 seconds
Donation Image