Welcome to the LimeSurvey Community Forum

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

Limit answers option in a "select one" (radio button) based on previous questio

More
9 years 4 months ago - 9 years 4 months ago #114683 by gyts
Hi i have a problem and i want to know if its posible to do with lime survey.
I have to questions, the number one a numerical imput to enter the persons age, and the number to a select one question to enter the age range of the person. So i want to limit the answers or preselect if its posible, on the second question based on the numerical imput. Because i have a lot of cases that the people enters their age range wrong and they are messing with the quotas.

Thanks

For example:
P1_ Whats your age? (numerical imput)
25

P2_ indicate age range

1- 18 to 29 <----this is te only possible answer.
2- 30 to 40
3- 41 and plus
Last edit: 9 years 4 months ago by gyts. Reason: forget to thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #114692 by tpartner
You can...

1) Use Expression Manager to set the default answer for the question - manual.limesurvey.org/Question_type_-_Li...alues_.28defaults.29


2) Use the Expression Manager assignment operator in an equation question to set the radio question - manual.limesurvey.org/Expression_Manager..._Assignment_Operator



.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #114693 by holch
I assume that you need the second question only for the purpose of screening.

In this case I would actually go a very different way.

What you can do is hide the second question and use Expression Manager as Tpartner suggested to set the answer in the age range questions and can then apply quotas to this question.

Because people will think it is strange that you ask them twice about their age.

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.

Lime-years ahead

Online-surveys for every purse and purpose