Welcome to the LimeSurvey Community Forum

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

Find 3 highest or lowest rated options in Array (Numbers) question?

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 7 months ago #99412 by tpartner
Yeah, I really never understood the thinking behind the "always hide" setting either.

You can hide the multiple-options question(s) with JavaScript.

After this line:
Code:
var bottomQID = $(bottomQ).attr('id').split('question')[1];


Add this:
Code:
    // Hide the multiple-options questions
    $(topQ).hide();
    $(bottomQ).hide();

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • cberghoff
  • cberghoff's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #99414 by cberghoff
I have the question id, so I'm using ...

$('#question10426').hide();

etc., in a hidden equation question at the beginning of the group, but now I need to click the next button at the end because an empty group is showing to the user :(

Do you know a quick way to do this?

Chris
The topic has been locked.
  • cberghoff
  • cberghoff's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #99417 by cberghoff
Never mind, I got it from one of your earlier posts. I'll also post a copy of the group with a description so others can use in the future.

Thanks again Tony. You've really been a lifesaver on this!!

Chris
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose