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
7 years 3 weeks 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
7 years 3 weeks ago - 7 years 3 weeks 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: 7 years 3 weeks ago by tpartner.
The topic has been locked.
  • vama
  • vama's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 2 weeks 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
7 years 2 weeks 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
7 years 2 weeks ago - 7 years 2 weeks 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: 7 years 2 weeks ago by tpartner.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose