condition for a group of questions

More
9 months 4 weeks ago #161875 by shiva522
shiva522 created the topic: condition for a group of questions
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?

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #161881 by holch
holch replied the 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'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 or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #161987 by shiva522
shiva522 replied the topic: condition for a group of questions
Thank you. happened. :)
Last Edit: 9 months 3 weeks ago by shiva522.

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #162044 by shiva522
shiva522 replied the 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.

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #162047 by fvanderstarre
fvanderstarre replied the 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).

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #162057 by shiva522
shiva522 replied the topic: condition for a group of questions
thanks. I will deal with this issue further

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago - 9 months 2 weeks ago #162180 by shiva522
shiva522 replied the 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: 9 months 2 weeks ago by shiva522.

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago - 9 months 2 weeks ago #162182 by tpartner
tpartner replied the 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)

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: 9 months 2 weeks ago by tpartner.

Please Log in or Create an account to join the conversation.

More
9 months 1 week ago - 9 months 1 week ago #162311 by shiva522
shiva522 replied the topic: condition for a group of questions
Thank you so much. Everything worked out. You're right :)
Last Edit: 9 months 1 week ago by shiva522.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!