Welcome to the LimeSurvey Community Forum

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

sublists and related queries

  • grodrigo
  • grodrigo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206087 by grodrigo
sublists and related queries was created by grodrigo
Sorry but I think it's a kind of many reposts, but it isn't even clear how to do it.
I have a list and with the answer I want the user have to answer a secondary question.
Like:
Choose a Country
Choose a city of that country

How I do that? In the documentation the examples are not related to that. I'm new in this, and we are facing this kind of problems to be sure to use this software.
There isn't such thing in the core? choose question B related to id of A.
I have to do this with javascript? where?
I have to use a plugin? which one?

Added to this, there isn't documentation for v4 as I know yet, and in v3 subquestions isn't present in v4, and the buton isn't what I'm searching for as I think.

Sorry for my english.
Thanks in advance!!
The topic has been locked.
  • grodrigo
  • grodrigo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206107 by grodrigo
Replied by grodrigo on topic sublists and related queries
Can somebody move this question to the correct section? Because I could'nt, thanks and sorry.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206108 by holch
Replied by holch on topic sublists and related queries
You can create the country question, and then for each country another question showing the cities. You can use relevance equations on the questions with the cities of each country and show/hide them according to the answer given in the country question.

However, there are also examples on creating dropdowns with the country and then the second dropdown shows the cities of the chose country. This is similar to an example provided by Denis with the states and cities within the states for France or something. You'll need to do a little search.

It requires a little bit of Javascript, but nothing too surprising.

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: DenisChenu
The topic has been locked.
  • grodrigo
  • grodrigo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206115 by grodrigo
Replied by grodrigo on topic sublists and related queries
I found in somewhere what you are talking about, but it seems in that time extremely hand made, but yes, I was thinking in some csv format to import the data, and then a little javascript in somewhere, this way it looks possible, and the way to do this.

I have to find the way to make the importation of the data and the and how to make and where to put the js.
Thanks for your reply!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206116 by Joffm
Replied by Joffm on topic sublists and related queries
Hi,
how many countries do you want to display?
How many cities do you want to display in total, how many per country (average).
There are a few a options:
The dual scale solution (Denis and Ifanfoni)
A autocomplete solution (either with an array or csv import)
two splitted dropdown questions (again either (searchable) dropdown or autocomplete) like






Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose