Welcome to the LimeSurvey Community Forum

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

Two drop down questions next to each other

  • rhanzlova
  • rhanzlova's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago #243296 by rhanzlova
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
I would like to ask is it possible to have two drop-down question next to each other combine in one question? Concretely, it should be question about month and year of birth.So that they would be next to each other and I could choose a different answer from the drop-down menu for each - months or years. 

Thank you.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago - 11 months 2 weeks ago #243298 by Joffm
Replied by Joffm on topic Two drop down questions next to each other
You only want to have two Drop-downs side by side, one for month, one for year?
There are many options.
1. Array dual scale with drop-down layout
2. Array(text) with drop-downs by javascript.
3. Multiple short text with drop-downs by javascript.
4. Two single questions (drop-down) side by side by flexbox-layout.
5. Two single questions (drop-down) vertically merged by css-classes.
6. And of course a datepicker with the appropriate setting (month.year)
7. One question with input mask and validation by RegExp
​​​​​​
Examples you find here in the forum.

But first answer the questions at the beginning and show how you think it to look like.

Nevertheless in my opinion it is less cumbersome for the respondent to enter just a number instead of clicking to open the drop-down and then click again to select the value.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 11 months 2 weeks ago by Joffm.
The following user(s) said Thank You: rhanzlova

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #243317 by tpartner
Replied by tpartner on topic Two drop down questions next to each other
Why not a date type question?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: rhanzlova

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #243319 by Joffm
Replied by Joffm on topic Two drop down questions next to each other
Exactly, Tony,

6. And of course a datepicker with the appropriate setting (month.year)

I did not mention the drop-down layout of the datepicker.
 

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

Please Log in to join the conversation.

  • rhanzlova
  • rhanzlova's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 1 week ago #243324 by rhanzlova
Replied by rhanzlova on topic Two drop down questions next to each other
Thank you very much for your very helpful suggestions.

This option 6 it means to be the best for me. Unfortunately, I am not good at scripting and programming and for preparing questionnaire I use the basic options.

So that I can do this, I suppose that I have to prepare some script, because in the basic setting, there is only option date/month/year and I would like to only month/year and I did not find the option, how to modify it.
As well as I do not know, how to set the range of year in drop-down.

Please, could you help me with the script and how to do that?

Thank you very much in advance.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 1 week ago - 11 months 1 week ago #243325 by Joffm
Replied by Joffm on topic Two drop down questions next to each other
This is one of the standard question types.
Read the manual about
format
min date
max date

 

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 11 months 1 week ago by Joffm.
The following user(s) said Thank You: rhanzlova

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose