- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Automatische Antwort von Limesurvey
- Medhoffm
- Topic Author
- Offline
- New Member
Less
More
2 years 1 week ago - 2 years 1 week ago #228135
by Medhoffm
Automatische Antwort von Limesurvey was created by Medhoffm
Bitte helfen Sie uns, Ihnen zu helfen und füllen Sie folgende Felder aus:
Ihre LimeSurvey-Version: Version 5.3.13
Eigener Server oder LimeSurvey-Cloud: Cloud
Genutzte Designvorlage: fruity
==================
Hallo zusammen,
ich habe seit paar Wochen hier schon viel gelesen und mich mit Limesurvey vertraut gemacht, dennoch bekomme ich folgendes Problem nicht gelöst.
Kurze Einleitung: Matrixfrage 3 Teilfragen und 3 Teilantworten:
Es soll eine Max diff Frage gestellt werden, die Tabelle ist unten im Rohdesign angegeben, aber da ich parallel mir schon die Auswertung bei STATA anschaue, bin ich auf ein Problem gestoßen.
Ich würde gerne, dass Limesurvey über if-Bedingungen mir automatisch in einer versteckten Teilfrage (hier Teilfrage 3; man könnte auch dies den "middle" Wert nennen) die Alternative ausgeben lässt, die gar nicht angekreuzt wurde. Aber ich weiß nicht wie ich das in den EM reinschreiben soll.
Alternative1Alternative 2Alternative 3
Spatial content:xxxxxxx
Specific building:yyyyyydistance 20kmdistance 25kmdistance 30km
Spatial content:xxxxxxx
Specific building:yyyyyydistance 20kmdistance 25kmdistance 30kmMake a choice best Make a choice worst
Quellcode:
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tbody>
<tr>
<td colspan="2" style="text-align: center;" width="20%"> </td>
<td bgcolor="#308737" style="text-align: center;" width="26%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative1</strong></span></span></td>
<td bgcolor="#308737" style="text-align: center;" width="26%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative 2</strong></span> </span></td>
<td bgcolor="#308737" style="text-align: center;" width="28%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative 3</strong></span> </span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Spatial content:xxxxxxx</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Specific building:yyyyyy</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;">
<div><span style="font-size:20px;"><strong>distance 20km</strong></span></div>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;"><span style="font-size:20px;"><strong>distance 25km</strong></span></td>
<td style="text-align: center;" width="28%"><span style="font-size:20px;"><span style="font-size:20px;"><strong>distance 30km</strong> </span></span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Spatial content:xxxxxxx</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Specific building:yyyyyy</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;">
<div><span style="font-size:20px;"><strong>distance 20km</strong></span></div>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;"><span style="font-size:20px;"><strong>distance 25km</strong></span></td>
<td style="text-align: center;" width="28%"><span style="font-size:20px;"><span style="font-size:20px;"><strong>distance 30km</strong></span> </span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" colspan="2" style="text-align: center;"><span style="font-size:14px;">Make a choice best </span></td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
</tr>
<tr>
<td bgcolor="#c1c1c1" colspan="2" style="text-align: center;"><span style="font-size:14px;">Make a choice worst</span></td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
</tr>
</tbody>
</table>
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
// Identify this question
var thisQuestion = $('#question{QID}');
// Move the radios
$('.question-text table:eq(0) tr:last td:eq(1)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(0) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(2)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(1) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(3)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(2) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(4)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(3) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(5)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(4) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(6)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(5) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(7)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(6) *', thisQuestion));
// Some classes for presentation
$('.question-text table:eq(0) input:radio', thisQuestion).closest('td').addClass('answer-item radio-item text-center radio');
$('.question-text table:eq(0) .radio-item label', thisQuestion).show();
// Click event on the table cells
$('.question-text table:eq(0) .radio-item', thisQuestion).on('click', function(e) {
$('input:radio', this).trigger('click');
});
$('.question-text table:eq(0) input:radio', thisQuestion).on('click', function(e) {
e.stopPropagation();
$('.question-text table:eq(1) .radio-item', thisQuestion).on('click', function(e) {
$('input:radio', this).trigger('click');
});
$('.question-text table:eq(1) input:radio', thisQuestion).on('click', function(e) {
e.stopPropagation();
});
// Clean-up styles
$('.answer-container', thisQuestion).hide();
$('.question-text table:eq(0) .label-text', thisQuestion).remove();
$('.question-text table:eq(0) .radio-text', thisQuestion).css({
'cursor': 'pointer'
});
$('td.radio', thisQuestion).css({
'display': 'table-cell',
'padding': '5px'
});
});
</script>
Viele Grüße
Michael
Ihre LimeSurvey-Version: Version 5.3.13
Eigener Server oder LimeSurvey-Cloud: Cloud
Genutzte Designvorlage: fruity
==================
Hallo zusammen,
ich habe seit paar Wochen hier schon viel gelesen und mich mit Limesurvey vertraut gemacht, dennoch bekomme ich folgendes Problem nicht gelöst.
Kurze Einleitung: Matrixfrage 3 Teilfragen und 3 Teilantworten:
Es soll eine Max diff Frage gestellt werden, die Tabelle ist unten im Rohdesign angegeben, aber da ich parallel mir schon die Auswertung bei STATA anschaue, bin ich auf ein Problem gestoßen.
Ich würde gerne, dass Limesurvey über if-Bedingungen mir automatisch in einer versteckten Teilfrage (hier Teilfrage 3; man könnte auch dies den "middle" Wert nennen) die Alternative ausgeben lässt, die gar nicht angekreuzt wurde. Aber ich weiß nicht wie ich das in den EM reinschreiben soll.
Alternative1Alternative 2Alternative 3
Spatial content:xxxxxxx
Specific building:yyyyyydistance 20kmdistance 25kmdistance 30km
Spatial content:xxxxxxx
Specific building:yyyyyydistance 20kmdistance 25kmdistance 30kmMake a choice best Make a choice worst
Quellcode:
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tbody>
<tr>
<td colspan="2" style="text-align: center;" width="20%"> </td>
<td bgcolor="#308737" style="text-align: center;" width="26%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative1</strong></span></span></td>
<td bgcolor="#308737" style="text-align: center;" width="26%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative 2</strong></span> </span></td>
<td bgcolor="#308737" style="text-align: center;" width="28%"><span style="color:#ffffff;font-size:20px;"><span style="color:#ffffff;font-size:20px;"><strong>Alternative 3</strong></span> </span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Spatial content:xxxxxxx</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Specific building:yyyyyy</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;">
<div><span style="font-size:20px;"><strong>distance 20km</strong></span></div>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;"><span style="font-size:20px;"><strong>distance 25km</strong></span></td>
<td style="text-align: center;" width="28%"><span style="font-size:20px;"><span style="font-size:20px;"><strong>distance 30km</strong> </span></span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Spatial content:xxxxxxx</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#c1c1c1" style="text-align: center;">
<p><br /><span style="font-size:16px;">Specific building:yyyyyy</span><span style="font-size:6px;"> </span></p>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;">
<div><span style="font-size:20px;"><strong>distance 20km</strong></span></div>
</td>
<td bgcolor="#f2f2f2" style="text-align: center;"><span style="font-size:20px;"><strong>distance 25km</strong></span></td>
<td style="text-align: center;" width="28%"><span style="font-size:20px;"><span style="font-size:20px;"><strong>distance 30km</strong></span> </span></td>
</tr>
<tr>
<td bgcolor="#c1c1c1" colspan="2" style="text-align: center;"><span style="font-size:14px;">Make a choice best </span></td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
</tr>
<tr>
<td bgcolor="#c1c1c1" colspan="2" style="text-align: center;"><span style="font-size:14px;">Make a choice worst</span></td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
<td bgcolor="#308737" style="text-align: center;"> </td>
</tr>
</tbody>
</table>
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
// Identify this question
var thisQuestion = $('#question{QID}');
// Move the radios
$('.question-text table:eq(0) tr:last td:eq(1)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(0) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(2)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(1) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(3)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(2) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(4)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(3) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(5)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(4) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(6)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(5) *', thisQuestion));
$('.question-text table:eq(0) tr:last td:eq(7)', thisQuestion).append($('.subquestion-list .answers-list:eq(0) .answer-item:eq(6) *', thisQuestion));
// Some classes for presentation
$('.question-text table:eq(0) input:radio', thisQuestion).closest('td').addClass('answer-item radio-item text-center radio');
$('.question-text table:eq(0) .radio-item label', thisQuestion).show();
// Click event on the table cells
$('.question-text table:eq(0) .radio-item', thisQuestion).on('click', function(e) {
$('input:radio', this).trigger('click');
});
$('.question-text table:eq(0) input:radio', thisQuestion).on('click', function(e) {
e.stopPropagation();
$('.question-text table:eq(1) .radio-item', thisQuestion).on('click', function(e) {
$('input:radio', this).trigger('click');
});
$('.question-text table:eq(1) input:radio', thisQuestion).on('click', function(e) {
e.stopPropagation();
});
// Clean-up styles
$('.answer-container', thisQuestion).hide();
$('.question-text table:eq(0) .label-text', thisQuestion).remove();
$('.question-text table:eq(0) .radio-text', thisQuestion).css({
'cursor': 'pointer'
});
$('td.radio', thisQuestion).css({
'display': 'table-cell',
'padding': '5px'
});
});
</script>
Viele Grüße
Michael
Last edit: 2 years 1 week ago by Medhoffm.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13052
- Thank you received: 4018
2 years 1 week ago #228138
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Automatische Antwort von Limesurvey
Hallo, Michael,
ich werde jetzt nicht irgendetwas basteln von dem ich nur die Hälfte kenne.
Wenn ich mir die Farben anschaue, sieht es ja nach dem von unseren Kollegen in Eindhoven "rauf und runter" benutzten Layout aus.
Und wieso stehen im script noch 7 radios? Du hast doch nur drei.
Hier einmal so etwas wie Du wohl hinzaubern möchtest. Habe ich wohl schon einmal hier gepostet.
Ganz roh gedacht:
Irgendwann - aber zumindest vor dem Ende der Umfrage - erstellst Du eine Gleichungsfrage mit der Du den Wert setzt.
Gucken, welche in den beiden anderen Teilfragen gesetzt sind, der übrige Wert wird reingeschrieben.
Also schicke einmal einen lss Export - nur dieser Frage; dann sehen wir weiter.
Bis dann
Joffm
ich werde jetzt nicht irgendetwas basteln von dem ich nur die Hälfte kenne.
Wenn ich mir die Farben anschaue, sieht es ja nach dem von unseren Kollegen in Eindhoven "rauf und runter" benutzten Layout aus.
Und wieso stehen im script noch 7 radios? Du hast doch nur drei.
Hier einmal so etwas wie Du wohl hinzaubern möchtest. Habe ich wohl schon einmal hier gepostet.
Ganz roh gedacht:
Irgendwann - aber zumindest vor dem Ende der Umfrage - erstellst Du eine Gleichungsfrage mit der Du den Wert setzt.
Gucken, welche in den beiden anderen Teilfragen gesetzt sind, der übrige Wert wird reingeschrieben.
Also schicke einmal einen lss Export - nur dieser Frage; dann sehen wir weiter.
Bis dann
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Medhoffm
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
2 years 6 days ago #228153
by Medhoffm
Replied by Medhoffm on topic Automatische Antwort von Limesurvey
Guten Tag Joffm,
Vielen Dank für deine schnelle Antwort. Ich reihe mich jetzt schon mal in die Reihe der Leute ein, die sich sehr freuen, dass du so aktiv bist in der Community.
""rauf und runter" benutzten Layout aus.
Und wieso stehen im script noch 7 radios? Du hast doch nur drei."
Genau mit dem Layout arbeite ich, dass habe ich mir als Vorlage genommen.
"File Attachment:
File Name: limesurvey...6226.lss
File Size:24 KB"
Ich werde heute Abend oder morgen Abend den export posten, da ich mich leider erst nach der Arbeit wieder dran setzen kann.
Vielen Dank für deine schnelle Antwort. Ich reihe mich jetzt schon mal in die Reihe der Leute ein, die sich sehr freuen, dass du so aktiv bist in der Community.
""rauf und runter" benutzten Layout aus.
Und wieso stehen im script noch 7 radios? Du hast doch nur drei."
Genau mit dem Layout arbeite ich, dass habe ich mir als Vorlage genommen.
"File Attachment:
File Name: limesurvey...6226.lss
File Size:24 KB"
Ich werde heute Abend oder morgen Abend den export posten, da ich mich leider erst nach der Arbeit wieder dran setzen kann.
Please Log in to join the conversation.
Moderators: Joffm