Check out the LimeSurvey source code on GitHub!

Options of a dropdown list from a database

More
5 years 8 months ago - 5 years 8 months ago #61782 by madopr
Is it possible to get the answers and codes of list(dropdown) (or radio) from a consult to an SQLServer/MySQL database?

I wan't to do something like this:

Database:
Field1|Field2
  1   |  a
  1   |  b
  1   |  c
  2   |  d
  2   |  f
  2   |  g

Survey:

First question: Numerical imput

Second question: Dropdown list
If First question answer is 1, options in dropdown
list should be a, b and c.
If First question answer is 2, options in dropdown
list should be d, e and f.




Thanks in advance!

[edit:] I know how to do this without the database. The problem is that in field 2 i could have hundreds of values...
Last Edit: 5 years 8 months ago by madopr.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form