Check out the LimeSurvey source code on GitHub!

how can i specialise the user access to a question group?

More
5 years 6 months ago #64194 by yaqi
Hello,

I have a simple question, how can I set a specific access to a question group, according to the user number(or a random number)?

I have three question groups in one survey. I want the first user only answer the first question group, the second only answer the second question group, the third only answer the third group, and again, the fourth only answer the first group......

It's just because, I have too many questions totally. I can't let the user answer all of the questions one time. And I can't split them in three surveys, because I need all results in one database.

And another simple question, how can I collect the users informations before they answer the survey? And save the informations with their answers in my database? For example, I can quickly find out later: how answered the people from 20 to 30 years old to this question...

Thanks for all your helps~! ^^

Please Log in to join the conversation.

More
5 years 6 months ago #64199 by holch
First of all, you can of course use 3 surveys and join the results later for analysis (outside of Limesurvey). However, that was not your question.

I am not too sure about what you refer when you ask about collecting users information.

I would include those questions in the actuall survey, before you go to the main questions, then you already have it in the same database for analysis.

Then you would have to set up conditions and generate some random numbers for the distribution of the 3 different question groups. Depending on the number generated you can create a condition that shows or hides the relevant questions.

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
The following user(s) said Thank You: yaqi

Please Log in to join the conversation.

More
5 years 6 months ago #64201 by yaqi
thanks Holch! You are right, I can put a small question before my really questions, just to collect the user informations. Actually, I only need the female, or male, and how old.

I also read another answer from you

www.limesurvey.org/en/forum/can-i-do-thi...3345-security-issues

But how can I set a question group to 'hidden'? with CSS? display or not?
Is there a better way in LimeSurvey?

Please Log in to join the conversation.

More
5 years 6 months ago #64203 by holch
No, you wouldn't do that with CSS. You would use conditions to show and hide specific questions.

docs.limesurvey.org/Setting+conditions&s...tions+for+LimeSurvey

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
The following user(s) said Thank You: yaqi

Please Log in to join the conversation.

More
5 years 6 months ago #64220 by yaqi
oh, I got it, thanks, it's very useful!

But how can I set the number of users as the condition to my question? For example, just for the first, fourth, seventh, tenth... users will the first question appear, and just for the second, fifth, eighth, eleventh....users will the second question appear.

So I have a pseudo-code:

if(survey==inactive)
show this question;
if(survey==active){
reminder r = (number of users) % 3;
if (r==1)
show this question;
otherwise
hide this question;
}

Please Log in to join the conversation.

More
5 years 6 months ago #64223 by yaqi
I got the answer in workaround doc.

----Generate random number to control survey behavior

But how can I check if the survey is active, or inactive?

Please Log in to join the conversation.

More
5 years 6 months ago #64243 by holch
If a survey is inactive, you can't access it from outside, so why would you want to show or not show questions? The respondent will just see the standard text that a survey is not active anyway.

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

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form