Welcome to the LimeSurvey Community Forum

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

condition for a group of questions

  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago #161875 by shiva522
condition for a group of questions was created by shiva522
Hello.

Tell me please whether it is possible in limesurvey to display different groups depending on the condition.

Eg. there are 3 groups in the survey and there are 3 participants who evaluate others but can not evaluate themselves.

How to make that for each person only groups on other people were displayed?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago #161881 by holch
Replied by holch on topic condition for a group of questions
This is possible, but the approach depends a little bit on how the survey is setup or how your participants get to the survey.

If you have a list of participants and you invite them via email, this is easy. You can add a custom attribute to the token table that highlights to which group each participant belongs.

Then in the questionnaire you can access this attribute (only if the survey mode is not annonymous) and use the expression manager to hide the questions/question groups regarding this specific participants group.

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

The topic has been locked.
  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago - 6 years 3 months ago #161987 by shiva522
Replied by shiva522 on topic condition for a group of questions
Thank you. happened. :)
Last edit: 6 years 3 months ago by shiva522.
The topic has been locked.
  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago #162044 by shiva522
Replied by shiva522 on topic condition for a group of questions
To what was said above, can you tell us in which language the conditions of mapping groups and questions work? As I understand the operators "and" "or" there is not. but there are operators "&&" "||" eg.
The topic has been locked.
More
6 years 3 months ago #162047 by fvanderstarre
Replied by fvanderstarre on topic condition for a group of questions
Hi, my suggestion would be to check the manual section on Expression Manager: manual.limesurvey.org/Expression_Manager (Expression Manager or E.M. is php-based and not really a language in itself).
The topic has been locked.
  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago #162057 by shiva522
Replied by shiva522 on topic condition for a group of questions
thanks. I will deal with this issue further
The topic has been locked.
  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago - 6 years 3 months ago #162180 by shiva522
Replied by shiva522 on topic condition for a group of questions
Figured out the conditions for the group. But there was a question that I could not find an answer to.

if a question or group is given a condition
((TOKEN: LASTNAME! = "Ivanov"))

then everything works as it should.

the right group or question is not displayed for a person with Lastname = Ivanov

if specify the condition
((TOKEN: LASTNAME! = "Ivanov" or TOKEN: LASTNAME! = "Petrov"))

the condition does not work at all, i.e. the question or group on which the condition was specified will be displayed that for the user Ivanov that for the user Petrov

The condition was formed by the "set condition" button. means limesurvey.

whether I understood the section of Expression manager manual correctly:

How should I choose between Conditions and Relevance?


exactly in "conditions" "and" "or" do not work? those. then:

((TOKEN: LASTNAME! = "Ivanov"))

- it works

and

((TOKEN: LASTNAME! = "Ivanov" or TOKEN: LASTNAME! = "Petrov"))

- does this limit condition work in limesurvey?


if this is the case where Relevance is given instead of the condition in the bitnami version limesurvey 2.72
Last edit: 6 years 3 months ago by shiva522.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago - 6 years 3 months ago #162182 by tpartner
Replied by tpartner on topic condition for a group of questions
I seems to me that your logic is flawed. If using "does not equal", it should be an AND condition.

(also, you have invalid spaces in the operators)

Code:
TOKEN:LASTNAME != "Ivanov" AND TOKEN:LASTNAME != "Petrov"

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 3 months ago by tpartner.
The topic has been locked.
  • shiva522
  • shiva522's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 3 months ago - 6 years 3 months ago #162311 by shiva522
Replied by shiva522 on topic condition for a group of questions
Thank you so much. Everything worked out. You're right :)
Last edit: 6 years 3 months ago by shiva522.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose