Welcome, Guest
Username: Password: Remember me

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

how can i specialise the user access to a question group? 2 years 11 months ago #64194

  • yaqi
  • yaqi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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~! ^^
The administrator has disabled public write access.

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64199

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: yaqi

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64201

  • yaqi
  • yaqi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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?
The administrator has disabled public write access.

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64203

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
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
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: yaqi

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64220

  • yaqi
  • yaqi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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;
}
The administrator has disabled public write access.

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64223

  • yaqi
  • yaqi's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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?
The administrator has disabled public write access.

Re: how can i specialise the user access to a question group? 2 years 11 months ago #64243

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.113 seconds
Donation Image