Welcome to the LimeSurvey Community Forum

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

Cannot create a list of countries in a dropdown

  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago #196028 by ymca
Wow this is so strange.
I don't know if it's a problem with the php.ini max var settings or Limesurvey or both.
I was trying to make a question with a dropdown of 249 countries.
At the begining I made it with "Multiple choice type:M" but I changed it to "Single choice questions=>list dropdown type:i".

Then I saw the countries were not in order of a-z so I tried to change it.
Then I saw it saved a small portion of the first countries.
I've tried to work around it and first save the countries, save, and then write the question.
Well... The countries answer list was saved just fine but the answer was blank.
it seems that no matter what I do, it will not make all things save together.
Or there will be no order to the answer
Or there will be ordered answer but no question
Or there will be order but small portion of the answers and a question.
:ohmy: :unsure: :pinch:

LS Version 4.2+
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196031 by holch
Which LS Version?
Do you have the list for us to test?

If you could do it the first time, then max vars can't be the problem.

You probably did not delete everything necessary or not substitute correctly, but rather added the new list at the end of the old list.

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

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196032 by Joffm

At the begining I made it with "Multiple choice type:M" but I changed it to "Single choice questions=>list dropdown type:i".

What did you "make"?

Then I saw the countries were not in order of a-z so I tried to change it.

Well, you have the labelset of countries.
So, import it in "Manage Label Sets"
Create your question and add it with "Predefined label sets"
And you see the answers are in alphabetical order of country name.

even if the code is not.

And you see, everything is fine.


This was shown in version 4.1.11.

And as I said before, I will not answer anymore, if you keep asking like "I tried, but it doesn't work" without showing us what you tried by attaching your lss export or at least show some screenshots.
And as usual you did not mention your LS version.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago - 3 years 11 months ago #196034 by ymca
Version 4.1.12+200324

ohh also here I have problems.
Couldn't upload the "countries list.lsl" file, so renamed it to "countries list.lsl.lsq".

I have tried many things.
Now did it again:
I have a testing survey "multiple 3 level.lss"
Made the question in this group "testing countries.lsg".
Imported my label set that I had "countries list" and it saved OK and fast (usually it's slow)
Watched the group preview and saw the list was in a random order

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #196035 by holch

I have tried many things.

Well, to fix it you need to do many other things... ;-)

As Joffm, help us to help you by providing information. If you go to your mechanic and tell him, my car does not run, do something. He'll do loads of tests, and it will cost you a lot of money.

Here, as no one gets paid for this, it just results in frustrated helpers that one day, when they see the post was by "ymca" will not even open it.

I opened your LSS file. There is NOTHING in it. NO question group, no question, nothing. What are we supposed to do with this? Why don't you give us your LSS file with all the "many things" you have tried? Then we can see what you have actually done, what is wrong, what is not working.

Tried to import your LSG file, but got an error message, because my installation does not have the database column "encrypted". I guess I'll have to install 4.x sooner or later.

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

Last edit: 3 years 11 months ago by holch.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago - 3 years 11 months ago #196036 by ymca
I'm trying to do what the mechanic tells me to do to help.

Here, as no one gets paid for this, it just results in frustrated helpers that one day, when they see the post was by "ymca" will not even open it.

I'm sorry I don't have a linear way of thinking. I'm very grateful for all the help, and frustrated that all the problems come to me (Corona is enough for me, no need for more :().

I opened your LSS file. There is NOTHING in it.

What do you want me to say?
I have exported it from the survey.
Also sometimes I get 404 when doing that (sure another problem for me :blink: ) when clicking on the structure=>group2=>export group.
Exported it again

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196037 by Joffm
So, what's your problem with your country question?
I set "Sort answers alphabetically" to "YES" and

Couldn't upload the "countries list.lsl" file, so renamed it to "countries list.lsl.lsq".

What did you do exactly?
What happened, when you in "Configuration / Manage label sets" selected "Create or import new label set", then
in "Import label set" selected the *.lsl file and clicked "import"?
Was there an error message, or?

FYI: The file extensions mean:
lss : survey export (this is the only file type you should attach here)
lsg : group export
lsq : question export
lsl : label set export

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ymca
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196038 by holch
I assume that the problem with the LSL file is with uploading it to the forum, not to Limesurvey itself. There was a time where you could not upload LSG or LSQ because the software wouldn't allow it. I guess it is the same problem with LSL. The person who setup the website / forum didn't think of all the LS files you could export.

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

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196039 by Joffm
holch, you're right.

I couldn't think of uploading this file, that was downloadad from the "label set templates" section.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago - 3 years 11 months ago #196040 by ymca

I set "Sort answers alphabetically" to "YES" and

:pinch: I missed that (maybe stress :P ).
Thank you so much.

Was there an error message, or?

Yes 404. Then clicked again on the group/survey and I managed.

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago - 3 years 11 months ago #196041 by ymca
I had a problem when I tried to update the question to change it to "Sort answers alphabetically" it didnt load half of the window (the answer section).
I opened the site in a different browser and it worked.
I think it didn't work because I had too many tabs open.
Also I think why I still have a problem with the countries list.
I have 1 question at the start of the survey asking "where are you from?" and the list of countries are there.
And at the end of the survey I have another question about countries with the countries list.
Now It make sense why the system still makes it random even after clicking the "Sort answers alphabetically".
Isn't saving the same question in a separate group fixing the problem of same question/answer code?

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago - 3 years 11 months ago #196043 by ymca
Deleted 3 question tests of countries list.
The original question seems to work.
Only "Åland Islands" is after the last country "Zimbabwe" (first countries question it's second after Afghanistan) when I used the "Sort answers alphabetically" when previewing the survey in the countries question.

LS Version 4.2+
Last edit: 3 years 11 months ago by ymca.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose