Welcome, Guest
Username: Password: Remember me

TOPIC: How can i show only N questions of one grp?

Re:How can i show only N questions of one grp? 3 years 10 months ago #55016

  • willyx
  • willyx's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
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.

How can i show only N questions of one grp? 1 year 3 months ago #99202

  • Denni
  • Denni's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
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.

How can i show only N questions of one grp? 1 year 3 months ago #99234

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
Denni : 2 years ago, LimeSUrvey version is 1.91. Now it's 2.0.

Please : make a new topic. I close this one ....
The topic has been locked.

How can i show only N questions of one grp? 1 year 3 months ago #99237

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The topic has been locked.
Moderators: ITEd
Time to create page: 0.105 seconds
Donation Image