Removal of answer option from multiple check box

More
1 month 2 days ago #159674 by vama
vama created the topic: Removal of answer option from multiple check box
I need to remove one anwer option from multiple check box answer option from the live survey.
By doing this Nothing should be affected. Historical data should remain.

Please Log in to join the conversation.

More
1 month 2 days ago - 1 month 2 days ago #159679 by tpartner
tpartner replied the topic: Removal of answer option from multiple check box
You should be able to add relevance to the sub-question to hide it. Something like 1 == 2.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 month 2 days ago by tpartner.

Please Log in to join the conversation.

More
1 month 2 days ago #159682 by vama
vama replied the topic: Removal of answer option from multiple check box
I am using limesurvey Version 1.87

Please Log in to join the conversation.

More
1 month 2 days ago #159688 by tammo
tammo replied the topic: Removal of answer option from multiple check box
Vama: it is really adviseable to update to a newer version. Your version of LimeSurvey is several years old. There are minimal 6 updates per year!

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in to join the conversation.

More
1 month 1 day ago - 1 month 1 day ago #159708 by tpartner
tpartner replied the topic: Removal of answer option from multiple check box
I cannot test on such an old version but try adding a script like this to the question source (adjust the "qID" and "row" variables as required):

<script type="text/javascript" charset="utf-8">
	$(document).on('ready',function() {
		var qID = 12345; // Question ID
		var row = 2; // Row to remove
 
		$('#question'+qID +' input[type="checkbox"]:eq('+(row-1)+')).closest('li').remove();
	});
</script>

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 month 1 day ago by tpartner.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!