Suppress one option in an Array Dual Scale question

More
4 years 10 months ago #87510 by tfj
tfj created the topic: Suppress one option in an Array Dual Scale question
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:

Please Log in to join the conversation.

More
4 years 10 months ago #87517 by DenisChenu
DenisChenu replied the 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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 10 months ago #87607 by tfj
tfj replied the 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

Please Log in to join the conversation.

More
4 years 10 months ago #87610 by DenisChenu
DenisChenu replied the 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:
$("#question{QID} .javatb{SGQ}SQ001 .answer_cell_1_00S1A1 input.radio").hide();

Hide SQ002 / S2A3:
$("#question{QID} .javatb{SGQ}SQ003 .answer_cell_2_00S2A3 input.radio").hide();

(in
$(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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 10 months ago #87611 by tfj
tfj replied the topic: Suppress one option in an Array Dual Scale question
Thanks, Denis! I'll have a look.

tfj

Please Log in to join the conversation.

  • lsorg
  • lsorg's Avatar
  • Visitor
  • Visitor
4 years 1 month ago #98628 by lsorg
lsorg replied the 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

Please Log in to join the conversation.

  • lsorg
  • lsorg's Avatar
  • Visitor
  • Visitor
4 years 1 month ago - 4 years 1 month ago #98643 by lsorg
lsorg replied the 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:
$("#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:
<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: 4 years 1 month ago by lsorg.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now