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
  • tfj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #87510 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
Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 4 months ago #87517 by DenisChenu
Hello,

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
  • tfj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #87607 by tfj
Thanks, Denis.

If anyone on the forum has done this, would you please share your technique?

tfj
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 4 months ago #87610 by DenisChenu
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:
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
  • tfj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #87611 by tfj
Thanks, Denis! I'll have a look.

tfj
The topic has been locked.
  • lsorg
  • lsorg's Avatar
  • Visitor
  • Visitor
10 years 7 months ago #98628 by lsorg
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
The topic has been locked.
  • lsorg
  • lsorg's Avatar
  • Visitor
  • Visitor
10 years 7 months ago - 10 years 7 months ago #98643 by lsorg
Sorry but I can't edit my previous post.

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.

Lime-years ahead

Online-surveys for every purse and purpose