Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Limesurvey - Questiongroup to Usergroup level permission within single survey

  • muthukrishnanr
  • muthukrishnanr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #140099 by muthukrishnanr
I have limesurvey 2.x. I have one survey(Survey1) with two question groups (QG1, QG2). Each question groups contains 3 questions. Also I have two type of user groups(UG1, UG2).

My question is, how do we allow UG1 only access QG1 as well UG2 only access QG2 within single survey (Survey1)?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #140100 by Joffm
Hi,
create an attribute in your respondent table (UG1=1, UG2=2)
Then you can use group relevance to display the respective groups to them.

If you don't have a respondent table, so there is a first question to distinguish the UGs.
Afterwards the same: group relevance.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: muthukrishnanr
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #140118 by holch
If you use tokens you can create a custom attribute where you define the user group and then you can access this custom attribute within the survey via the expression manager.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: muthukrishnanr
The topic has been locked.
  • muthukrishnanr
  • muthukrishnanr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #140121 by muthukrishnanr
Hi Holch and Joffm,

Thanks for your immediate answer. i have followed your stpes and achieved my target. Thank you!.

Below are the stpes i have followed,
- Created Tokens
- Created Token custom attributes and displayed on registration page to get user input (before accessing survey).
- Created group relevance by using above attribute inputs (used Expression Manager).

Now user will get survey questions based on their attribute input.

Thanks
Muthukrishnan R
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose