Check out the LimeSurvey source code on GitHub!

How can i show only N questions of one grp?

More
6 years 1 week ago #55016 by willyx
no sorry, doesn't work :(

Versione 1.91RC2 Build 9672

U can test id as admin if u want, default passw
The topic has been locked.
More
3 years 5 months ago #99202 by Denni
Hey, I also need to show only one question within a question group. Therefore I used following code as suggested in the description of the question group: <script type="text/javascript" charset="utf-8">

$(document).ready(function() {

showQuestions(1);

function showQuestions(showNum) {

$('div[id^="question"]').hide();
$('div[id^="question"]').each(function(i) {
if (i < showNum) {
$(this).show();

Also I enabled Java. But all the questions in the question group appear :( What could be my mistake? Do I need to use/fill in the field "randomization group"? Any help would be largely appreciated!!
The topic has been locked.
More
3 years 5 months ago #99234 by DenisChenu
Denni : 2 years ago, LimeSUrvey version is 1.91. Now it's 2.0.

Please : make a new topic. I close this one ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The topic has been locked.
More
3 years 5 months ago #99237 by Mazi

Denni wrote: Hey, I also need to show only one question within a question group.

Hi Denni,

If you want to randomly show 1 of X questions of a question group, have a look at this tutorial:
" How to randomly show 1 of X questions at a Limesurvey survey "


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The topic has been locked.
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form