- Posts: 20
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Suppress one option in an Array Dual Scale question
- tfj
- Topic Author
- Offline
- Junior Member
Less
More
11 years 4 months ago #87510
by tfj
Suppress one option in an Array Dual Scale question was created by tfj
In an Array Dual scale question type, is it possible to suppress one answer option for one(or more)of the subquestions?
For example, please see the attached pdf file. The first question is not asked in the first of the scales, but is asked in the second. (This is just an example . . . the actual question has many subquestions.)
I realize that I could split the question into parts, but this would make it harder for the data analysts.
I am using version 1.92+, build 120919.
Thanks!
tfj
For example, please see the attached pdf file. The first question is not asked in the first of the scales, but is asked in the second. (This is just an example . . . the actual question has many subquestions.)
I realize that I could split the question into parts, but this would make it harder for the data analysts.
I am using version 1.92+, build 120919.
Thanks!
tfj
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
11 years 4 months ago #87517
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Suppress one option in an Array Dual Scale question
Hello,
There are no included system to do that. You can hide the input.checkbox in javascript.
Denis
There are no included system to do that. You can hide the input.checkbox in javascript.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tfj
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 0
11 years 4 months ago #87607
by tfj
Replied by tfj on topic Suppress one option in an Array Dual Scale question
Thanks, Denis.
If anyone on the forum has done this, would you please share your technique?
tfj
If anyone on the forum has done this, would you please share your technique?
tfj
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
11 years 4 months ago #87610
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Suppress one option in an Array Dual Scale question
Hello,
If i made no error,
For 1st scale: S1A1,S1A2,S1A3
For 2nd scale: S1A1,S1A2,S1A3
For subQ: SQ001,SQ002 ....
Hide SQ001 / S1A1:
Hide SQ002 / S2A3:
(in
)
If i made no error,
For 1st scale: S1A1,S1A2,S1A3
For 2nd scale: S1A1,S1A2,S1A3
For subQ: SQ001,SQ002 ....
Hide SQ001 / S1A1:
Code:
$("#question{QID} .javatb{SGQ}SQ001 .answer_cell_1_00S1A1 input.radio").hide();
Hide SQ002 / S2A3:
Code:
$("#question{QID} .javatb{SGQ}SQ003 .answer_cell_2_00S2A3 input.radio").hide();
(in
Code:
$(function() {});
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tfj
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
- Thank you received: 0
11 years 4 months ago #87611
by tfj
Replied by tfj on topic Suppress one option in an Array Dual Scale question
Thanks, Denis! I'll have a look.
tfj
tfj
The topic has been locked.
- lsorg
- Visitor
10 years 7 months ago #98628
by lsorg
Replied by lsorg on topic Suppress one option in an Array Dual Scale question
Hi,
I have tested the code to hide some radioboxes in my dual scale, but I don't work.
I hope somebody could give me some input what I have do wrong.
Test Survey
I want for example in my test question in the second array the complete first and second row without the boxes. But with the code that I have implement it don't work.
Best regards
lsorg
I have tested the code to hide some radioboxes in my dual scale, but I don't work.
I hope somebody could give me some input what I have do wrong.
Test Survey
I want for example in my test question in the second array the complete first and second row without the boxes. But with the code that I have implement it don't work.
Best regards
lsorg
The topic has been locked.
- lsorg
- Visitor
10 years 7 months ago - 10 years 7 months ago #98643
by lsorg
Replied by lsorg on topic Suppress one option in an Array Dual Scale question
Sorry but I can't edit my previous post.
Now I have edit the above code as follows:
With this code it hides every radiobox in the eight column in each row. But I did not find out how can only hides the radiobox in the eight column in the rows where I want. For example in the first and second row.
Any ideas? The above .javatb{SGQ}SQ001 doesn't work.
Best regards
lsorg
Edit:
Ok I have find it out.
With this code you could hide each cell in a scale:
SID = Survey ID
GID = Groupquestion ID
QID = Question ID
SQID= Subqestion ID
AID = Arry ID
For example: ("#javatbd452595X22X775SQ001 .answer_cell_2_00A1 input.radio").hide();
My survey ID: 452595
Groupquestion ID: 22
Question ID: 775
Subquestion ID: SQ001
Arry: 2 (if you want hide cells in the first arry you have change it to 1)
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("#javatbd452595X22X775SQ001 .answer_cell_2_00A1 input.radio").hide();
})
</script>
Best regards
lsorg
Now I have edit the above code as follows:
Code:
$("#question{775} .answer_cell_2_00A1 input.radio").hide();
With this code it hides every radiobox in the eight column in each row. But I did not find out how can only hides the radiobox in the eight column in the rows where I want. For example in the first and second row.
Any ideas? The above .javatb{SGQ}SQ001 doesn't work.
Best regards
lsorg
Edit:
Ok I have find it out.
With this code you could hide each cell in a scale:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("#javatbdSIDXGIDXQIDSQID .answer_cell_AID_00A1 input.radio").hide(); }) </script>
SID = Survey ID
GID = Groupquestion ID
QID = Question ID
SQID= Subqestion ID
AID = Arry ID
Attachment Snip20130730_1.png not found
For example: ("#javatbd452595X22X775SQ001 .answer_cell_2_00A1 input.radio").hide();
My survey ID: 452595
Groupquestion ID: 22
Question ID: 775
Subquestion ID: SQ001
Arry: 2 (if you want hide cells in the first arry you have change it to 1)
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("#javatbd452595X22X775SQ001 .answer_cell_2_00A1 input.radio").hide();
})
</script>
Best regards
lsorg
Attachments:
Last edit: 10 years 7 months ago by lsorg.
The topic has been locked.