Welcome to the LimeSurvey Community Forum

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

How can i show only N questions of one grp?

  • willyx
  • willyx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55016 by willyx
Replied by willyx on topic How can i show only N questions of one grp?
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
10 years 7 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 7 months ago #99234 by DenisChenu
Replied by DenisChenu on topic How can i show only N questions of one grp?
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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
10 years 7 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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose