Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Removal of answer option from multiple check box

  • vama
  • vama's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 6 months ago #159674 by vama
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago - 6 years 6 months ago #159679 by tpartner
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: 6 years 6 months ago by tpartner.
The topic has been locked.
  • vama
  • vama's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 6 months ago #159682 by vama
I am using limesurvey Version 1.87
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 6 months ago #159688 by tammo
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 Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago - 6 years 6 months ago #159708 by tpartner
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):

Code:
<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: 6 years 6 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose