Welcome to the LimeSurvey Community Forum

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

how to put 2 date type question in 1 question?

  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 5 months ago #113084 by iscar
for example, you live in newyork from *** to ***
i didnot find this type question is ls. the date type question can only allow 1 date record.
how to make it?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #113100 by tpartner
Replied by tpartner on topic how to put 2 date type question in 1 question?
You'll need two separate questions.

You can use CSS or JavaScript to make then appear as one question.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 5 months ago #113107 by iscar
have no any idea about css and js, i always use question by question display type.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #113144 by tpartner
Replied by tpartner on topic how to put 2 date type question in 1 question?
In that case you won't be able to show the two date questions together.

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: researchguru
The topic has been locked.
More
7 years 1 month ago #147942 by researchguru
Replied by researchguru on topic how to put 2 date type question in 1 question?
Hi,

I've tried this code but it does not work. Any idea?

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

// Identify the questions
var thisQuestion = $('#question{QID}');
var nextQuestion = $(thisQuestion).next('div[id^="question"]');

// Hide the next question
$(nextQuestion).hide();

// Move the radios from the next question
$('.input.text', thisQuestion).append($('.input.text', nextQuestion));

// Some cleanup styles
$('.input.text select, .input.text ul, .input.text li', thisQuestion).css({
'float': 'left'
});
$('.input.text ul', thisQuestion).css({
'list-style': 'none',
'margin-left': '50px'
});
$('.input.text li', thisQuestion).css({
'margin-right': '15px'
});
});
</script>
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose