Welcome to the LimeSurvey Community Forum

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

Dropdownlist and large set of answer options

  • dlemaitr
  • dlemaitr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 10 hours ago - 4 years 10 hours ago #197741 by dlemaitr
So I have a user with a survey with 2 questions that require the user to choose from a country list . the codes are G06Q12 and G06Q13 in the "yourself" group

I have tried to upload the countries in the answeroptions, but everytime I save, only a limited set is added (up to the code CT).

I've tried to define a labelset which contains these values, but when i import this labelset the same problem arises.

Does a dropdownlist have a limit on the amount of possible answers? should my user use a different questiontype?

Any advice is appreciated


version is 4.1.18+200416
Last edit: 4 years 10 hours ago by dlemaitr. Reason: forget to mentions de version i am running
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 hours ago #197753 by Joffm
Seems to be a bug.

I can insert up to St. Helena (220 countries)


So you may decide:
Use the official country list for nationality.
Nobody has a nationality of "Canarian islands".

Residence? If you really want to use this all, you may split the question into some.
First question: Region?
Second-... question: Countries of this region (displayed by relevance equation)


Therefore we say: 4.x. still not for production, only to test.
Use 3.22. LTS

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 6 hours ago - 4 years 5 hours ago #197781 by holch
Usually this is caused by a max_vars setting in PHP that is too low.

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

Last edit: 4 years 5 hours ago by holch. Reason: two --> too *facepalm*
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 hours ago - 4 years 5 hours ago #197807 by Joffm
I still think, it is a bug.

On the same machine (same max_vars) there is no problem to include this amount of countries in 3.22.

And I didn't mention one strange thing.

If I enter some items by quick-add, and then ADD some more, these last appear in reversed order.


But there is more
The drop-down shows this


and now the answer options appear like this

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 5 hours ago by Joffm.
The topic has been locked.
  • holch
  • holch's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 hours ago #197808 by holch
Did you try it in the other version also with the assessment mode on?

Because when you include the question code, the assessment value and the actual answer option, you have 3x as many variables to transfer as when you only transfer the answer option (without the question code and without the assessment value), this can make a huge difference when it comes to max_vars.

But if this was done the same way in 3.22 and in 4.x on the same machine with the same max_vars, then either 4.x transmits more vars (totally possible, because the database structure has changed) or it is a bug, just as you suspect.

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.
More
3 years 11 months ago #198490 by jdebock
Replied by jdebock on topic Dropdownlist and large set of answer options
Is there any news on tis one ?
I have the same problem with 4.2.1
want to add all the postcodes of Belgium, but this is way too many, it gives a red error rectangle without any information.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198491 by Joffm
Hi,
I am sure you don't want to enter only the postcodes into the dropdown.
If so, you have to know the postcode to find it. In this case you can enter it into a textfield.

But in my opinion instead of entering all postcodes in a dropdown you may use a autocomplete with the postcodes in a csv-file.

Here an example with about 8000 German postcodes and cities.
www.limesurvey.org/forum/german-forum/12...agen-anzeigen#194696

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 11 months ago #198845 by jdebock
Replied by jdebock on topic Dropdownlist and large set of answer options
Tx, this indeed was a very good solution, even in V4 :-)
The topic has been locked.
More
3 years 7 months ago - 3 years 7 months ago #205502 by oguerrer
Replied by oguerrer on topic Dropdownlist and large set of answer options
Hi,

Have there been any updates on how to display a large list (country names in my case) in the dropdown menu? I am having the same problem with LimeSurvey 4.2.

Thanks
Last edit: 3 years 7 months ago by oguerrer.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205511 by tpartner
Replied by tpartner on topic Dropdownlist and large set of answer options
Did you try the autocomplete solution as suggested?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose