- Posts: 169
- Thank you received: 0
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
- Topic Author
- Offline
- Elite Member
Less
More
9 years 5 months ago #113084
by iscar
how to put 2 date type question in 1 question? was created 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?
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10631
- Thank you received: 3696
9 years 5 months ago #113100
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 169
- Thank you received: 0
9 years 5 months ago #113107
by iscar
Replied by iscar on topic how to put 2 date type question in 1 question?
have no any idea about css and js, i always use question by question display type.
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10631
- Thank you received: 3696
9 years 5 months ago #113144
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
- researchguru
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
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>
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.