How can i show only N questions of one grp?

More
6 years 7 months ago #55016 by willyx
willyx replied the 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
4 years 1 day ago #99202 by Denni
Denni replied the topic: How can i show only N questions of one grp?
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
4 years 6 hours ago #99234 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The topic has been locked.
More
4 years 6 hours ago #99237 by Mazi
Mazi replied the topic: How can i show only N questions of one grp?

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.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now