Reference data as field/question type

More
2 years 11 months ago #107951 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

Please Log in to join the conversation.

More
2 years 11 months ago #107954 by holch
How about using label sets? This should be exactly what you are looking for.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: pievarolil

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #107955 by Ben_V
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)
Attachments:
Last Edit: 2 years 11 months ago by Ben_V.
The following user(s) said Thank You: pievarolil

Please Log in to join the conversation.

More
2 years 11 months ago #107990 by pievarolil
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?

Please Log in to join the conversation.

More
2 years 11 months ago #107991 by pievarolil
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.

Please Log in to join the conversation.

More
2 years 11 months ago #107993 by pievarolil
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.

Please Log in to join the conversation.

More
2 years 11 months ago #107994 by Ben_V
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:

Please Log in to join the conversation.

More
2 years 11 months ago #108001 by pievarolil
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

Please Log in to join the conversation.