Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Reference data as field/question type

  • pievarolil
  • pievarolil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #107951 by pievarolil
Reference data as field/question type was created by pievarolil
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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago #107954 by holch
Replied by holch on topic Reference data as field/question type
How about using label sets? This should be exactly what you are looking for.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: pievarolil
The topic has been locked.
More
9 years 10 months ago - 9 years 10 months ago #107955 by Ben_V
Replied by Ben_V on topic Reference data as field/question type
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

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 9 years 10 months ago by Ben_V.
The following user(s) said Thank You: pievarolil
The topic has been locked.
  • pievarolil
  • pievarolil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #107990 by pievarolil
Replied by pievarolil on topic Reference data as field/question type
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 topic has been locked.
  • pievarolil
  • pievarolil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #107991 by pievarolil
Replied by pievarolil on topic Reference data as field/question type
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 topic has been locked.
  • pievarolil
  • pievarolil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #107993 by pievarolil
Replied by pievarolil on topic Reference data as field/question type
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 topic has been locked.
More
9 years 10 months ago #107994 by Ben_V
Replied by Ben_V on topic Reference data as field/question type
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...



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

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Attachments:
The topic has been locked.
  • pievarolil
  • pievarolil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108001 by pievarolil
Replied by pievarolil on topic Reference data as field/question type
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 topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose