Welcome to the LimeSurvey Community Forum

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

Multi choice with comments - Hide

More
3 years 9 months ago #222107 by scene143
Hi Team,

I am trying the below JS for hide few comment box for Multi choice with comments Questions but its not working after i updated new version of Limesurvey. Can any one help ?

<script type="text/javascript" charset="utf-8">

$(document).on('ready pjax:scriptcomplete',function(){

// Remove the first comment box
$('#question{QID} ul.ls-answers li:eq(0) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(1) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(2) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(3) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(4) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(5) .comment-item').remove();
$('#question{QID} ul.ls-answers li:eq(6) .comment-item').remove();


});

Regards
Sara
The topic has been locked.
More
3 years 9 months ago - 3 years 9 months ago #222112 by Joffm
Hi, Sara,
there were two new releases on november 15,
5.2.2 and 3.27.29
Which is the one with your issue?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 9 months ago by Joffm.
The topic has been locked.
More
3 years 9 months ago #222114 by scene143
Hi Joffm,

It is 5.22 version.

Regards
Sara
The topic has been locked.
More
3 years 9 months ago #222135 by scene143
Hi Joffm,

Can you please help me to solve this error.

Regards
Sara
The topic has been locked.
More
3 years 9 months ago #222136 by scene143
Hi Joffm,

I got it now its working thank you.

Regards
Sara
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose