Welcome to the LimeSurvey Community Forum

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

Retrieve condition of response

  • celineV
  • celineV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 2 weeks ago #251107 by celineV
Retrieve condition of response was created by celineV
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.2.5+230828
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Inherit [fruity]
==================
Hello, 

I randomly assigned conditions to the participants using this code: if(is_empty(HiddenConditionQuestion), rand(1, 3), HiddenConditionQuestion).
My data collection is now completed, but I can't see the condition a participant was assigned to in the responses. Does someone know a way to retrieve this?

Thank you! 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 2 weeks ago #251114 by Joffm
Replied by Joffm on topic Retrieve condition of response
Hi,
so usually there should be a variable in the dataset "HiddenConditionQuestion", where the value of the equation is stored.

BUT: This is a bit confusing

I randomly assigned conditions to the participants using this code: ...

What does it mean exactly?
Didn't you create a question of type "equation" (with question code HiddenConditionQuestion) with
{if(is_empty(HiddenConditionQuestion), rand(1, 3), HiddenConditionQuestion)}
and then displayed following groups/questions/subquestions with conditions like HiddenConditionQuestion==1?
What else did you do?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose