Randomize & Automatically Number Questions within specific Groups

Plus d'informations
il y a 1 semaine 5 jours #183090 par rpfohl
COM_KUNENA_MESSAGE_CREATED_NEW
I am trying to figure out how I can automatically number just assessment within my survey as I have a section of demographics questions when the assessment begins which I do not want numbered and then some questions at the end (like a post survey) which I also do not want to number. Also the automatically numbered questions need to be randomized as well so I want the randomization to happen only for the assessment questions. It seems that the automatic numbering applies to every question you create so I am trying to work around that. I believe I can do randomization if I assign all the questions to the same group, is that correct?

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 1 semaine 4 jours #183163 par cdorin
COM_KUNENA_MESSAGE_REPLIED_NEW
I am not sure if I understand what you want to achieve. Could you please explain again by providing more details + working example? (.lss)
Les utilisateur(s) suivant ont remercié: rpfohl

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183167 par Joffm
COM_KUNENA_MESSAGE_REPLIED_NEW
In my opinion you just want to randomize some questions.
And the answer to your last question is "Yes"

What you are talking about the question number is more or less irrelevant. This is just the auto increment value in the database.

Joffm

I did not answer earlier, because I didn't want to read your post without any linefeeds / carriage returns. I am sure there is this key on your keyboard.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Les utilisateur(s) suivant ont remercié: rpfohl

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183171 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks for your response. So when a survey is executed there is an initial page that captures demographics info. Then when the demographics info is captured the next page is the first question of the assessment. The users go through each of the questions and end with some post-assessment questions on a final page. So let's say I have 10 Demo questions on page 1, 25 survey questions (all on their own pages) and then a final page of 5 questions to capture their impression of the survey.

If I turn-on automatic page numbering the first question of the survey (let's call it "How likely are you to collaborate as a member of this team") shows up like this "11. How likely are you to collaborate as a member of this team." It should show up as "1. How likely are you to collaborate as a member of this team" but it is numbering the demographics questions also. The reason I am using LimeSurvey's numbering is because I want the questions to be random so that #1 is not always "1. How likely are you to collaborate as a member of a team but could be another question." Question grouping should take care of my randomization solution but I am still unsure how to focus the question section as 1-25 without having the demographics and post-survey questions page added to the numbering. The only way I know how to do this is to manually place numbers on the questions but then I cannot randomize those questions. Hopefully that is more clear and provides you more info on what I am trying to do.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183183 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You can get the sequential number of a question with the Expression Manager Qcode.qseq variable - manual.limesurvey.org/Expression_Manager#Access_to_Variables

This is sequential regardless of group randomization.

So, in your example, you would want to use something like:
{Qcode.qseq-9}

Sample survey attached:

Fichier attaché :

Nom du fichier : limesurvey...4621.lss
Taille du ficher :19 ko

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Pièces jointes :
Les utilisateur(s) suivant ont remercié: rpfohl, cdorin

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183189 par holch
COM_KUNENA_MESSAGE_REPLIED_NEW
Pretty cool idea. I did not know that this .qseq exists. But then I thought, wait Tpartner, this doesn't make sense, it still doesn't start with 1...

But I should have know better. Tpartner delivers. Minus 9. Genius. ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183190 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW

But then I thought, wait Tpartner, this doesn't make sense, it still doesn't start with 1...

Nope, it's an index so it starts at 0.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #183196 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks, I will check this out.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 3 jours #183237 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks again Tony, so it appears this randomizes the questions as well as the question groups which gives me some other ideas as I try to solution this for my client.

www.screencast.com/t/gWEQv82EqImi
www.screencast.com/t/cWOXnRFHkFv
www.screencast.com/t/jKJX8vOG
www.screencast.com/t/jcN0csTRc4

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 3 jours #183238 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
My bad, this was only for numbering, I forgot I added these questions to a Randomization group name which is why they came through as random. So now the only unsolved piece here is how I properly apply all of this. The numbers are coming through fine, the demographics are not part of that numbering but the numbered questions are not random unless they are in a randomization group however when I do this the Question groups are not matching the Questions. So my screenshots are related to that scenario.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 jours 16 heures #183328 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You lost me. I thought the intention was to randomize the question order but have sequential numbering. Why do you care about the group order?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 jours 12 heures #183345 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
That is correct however, as you know, the question type messes that up. This is more complicated than I thought as there is one more variable to consider. Let me get all of this into an LSS and you can see what I am referring to so its more clear. I'll get back to this forum.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 jours 11 heures #183347 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW

...as you know, the question type messes that up.

Huh? How does a question type mess up group randomization?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 jours 2 heures - il y a 5 jours 2 heures #183409 par rpfohl
COM_KUNENA_MESSAGE_REPLIED_NEW
It doesn't anymore so it appears everything is working except one issue I can't seem to resolve. On your survey below if I add a new Group and a new Question for that group it is added to the numbering. How did you keep Group 0 from being counted in the numbering? In your LSS file G1, G2, G3 and G4 are being numbered and showing up randomly as designed. I can easily add G5 and more with no problem but when I want to add something between Group 0 and G1-G4 it changes the numbering. See the modified version of your LSS attached here. I added Pre and Post questions that shouldn't be in the numbering but for some reason the Pre question is being considered as #1 because when G1-G6 should up randomly on the next page they start as #2 no matter what I do. What do you think?

Fichier attaché :

Nom du fichier : limesurvey...4821.lss
Taille du ficher :29 ko
Pièces jointes :
Last edit: il y a 5 jours 2 heures by rpfohl.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 jours 14 heures - il y a 4 jours 14 heures #183423 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
I think you missed the concept of my expression below which is designed to start numbering after 10 questions:

{Qcode.qseq-9}

This returns the current questions position index number minus 9. So, for the 11th question, which has an index of 10 (because the indexing starts at 0), this will return 1.

In your test survey, you have 4 questions before the numbering starts (3 in Group 0 and one in Pre). The expression in the "numbered" questions should be:

{Qcode.qseq-3}

Sample survey attached:

Fichier attaché :

Nom du fichier : limesurvey...4821.lss
Taille du ficher :30 ko

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Pièces jointes :
Last edit: il y a 4 jours 14 heures by tpartner.
Les utilisateur(s) suivant ont remercié: holch, rpfohl

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!