Welcome to the LimeSurvey Community Forum

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

Possible to autopopulate a drop down list based on another question

  • derek_001
  • derek_001's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168334 by derek_001
Hi,

I have the following situation:

Question1 on Page 1,

Question2 on Page 2,



Question1 is a short free text input, Question2 is a drop down list.

What I am trying to achieve is, auto-populate Question2 and make that read only (so user can't amend) based on text entered for Question1.

Example, enter 'ABCD' for Q1, and the third entry is auto-selected for Q2.


(N.B. Question2 already has a 'Relevance Equation' populated)


Thanks in advance
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168413 by Joffm
Hi,

if I understood right, just enter as one answer option of Question2: {Question1}
and set this option as default answer.







Or what do you mean by

make that read only (so user can't amend) based on text entered for Question1.

Example, enter 'ABCD' for Q1, and the third entry is auto-selected for Q2.



Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • derek_001
  • derek_001's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168428 by derek_001
Hi Joffm,

I think my original question is a little hard to understand. Currently my survey works like this:

Question 1 - 'enter a postcode' (short text entry)


Question 2 - 'pick a city' (drop down list of cities, e.g London/Paris/Manchester etc)


What I am trying to do is, after Q1 is answered, Q2 is already selected. Is it possible to do this? I may need to store the postcodes with each city somewhere for Q2 (e.g SW12 - London, MEN12 - Manchester) etc

Hope this makes more sense,

Many thanks
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168429 by Joffm
The problem of this post is similar.
Dropdown options visible depending on ATTRIBUTE.
But maybe you can get some ideas.

www.limesurvey.org/forum/development/114...ute_5%7D-on-question

There is a sample survey attached.

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