Welcome to the LimeSurvey Community Forum

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

Retrieve condition of response

More
1 year 10 months ago #251107 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.

More
1 year 10 months ago #251114 by Joffm
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.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose