Welcome, Guest
Username: Password: Remember me

TOPIC: Suppress one option in an Array Dual Scale question

Suppress one option in an Array Dual Scale question 1 year 9 months ago #87510

  • tfj
  • tfj's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 6
  • Karma: 5
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 administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 1 year 9 months ago #87517

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6222
  • Thank you received: 791
  • Karma: 238
Hello,

There are no included system to do that. You can hide the input.checkbox in javascript.

Denis
The administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 1 year 8 months ago #87607

  • tfj
  • tfj's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 6
  • Karma: 5
Thanks, Denis.

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

tfj
The administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 1 year 8 months ago #87610

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6222
  • Thank you received: 791
  • Karma: 238
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() {});
)
The administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 1 year 8 months ago #87611

  • tfj
  • tfj's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 6
  • Karma: 5
Thanks, Denis! I'll have a look.

tfj
The administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 1 year 8 hours ago #98628

  • lsorg
  • lsorg's Avatar
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 administrator has disabled public write access.

Re: Suppress one option in an Array Dual Scale question 11 months 4 weeks ago #98643

  • lsorg
  • lsorg's Avatar
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
Last Edit: 11 months 4 weeks ago by lsorg.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.127 seconds
Donation Image