Welcome to the LimeSurvey Community Forum

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

Display town/suburb based on postcode entry

  • joebloggs1987
  • joebloggs1987's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 5 months ago - 1 year 5 months ago #233157 by joebloggs1987
Display town/suburb based on postcode entry was created by joebloggs1987
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.28.34+22102
Own server or LimeSurvey hosting: Own server
Survey theme/template: Fruity
==================
Hi all,

We have a list of over a thousand postcodes and over ten thousand suburbs, and are wanting to use these as validation for response consistency. We've seen this set up in other survey platforms, so I'm hoping there is a way to make it work in LimeSurvey as well. I've tried searching for an answer in the forums and on Google, but can't seem to find the instructions to set it up.

The way we currently do this has no validation, so it is programmed as the following...

Q1. What is your postcode?
[Numerical input, Min 800, Max 9999]

Q2. What is your town/suburb?
[Short free text]

Essentially what we are after is something along the lines of the following...

Q1. What is your postcode?
[Numerical input, Min 800, Max 9999]

Q2. What is your town/suburb?
[Dropdown, only display the towns/suburbs that match the postcode]

I've tried setting this up a few different ways using logic to only show some suburbs, but there is a limit to the number of suburbs that can be in the list. I've also thought about creating a separate dropdown question for every single postcode and using logic to show the right dropdown question, but this would be extremely time consuming to set up thousands of questions and result in an extremely large data file.

Any help is much appreciated.
 
Last edit: 1 year 5 months ago by joebloggs1987.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233175 by Joffm
You can do this by "autocomplete"
Here you enter the postcode and get a dropdown with all suburbs that match this postcode
 

Here you find a complete example with all necessary files
[url] forums.limesurvey.org/forum/german-forum...agen-anzeigen#194744 [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose