Welcome to the LimeSurvey Community Forum

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

randomization does not work in preview of survey

  • Jannik_Hoehne
  • Jannik_Hoehne's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 6 days ago #265785 by Jannik_Hoehne
Please help us help you and fill where relevant:
LimeSurvey version: 6.5.16
Own server or LimeSurvey Cloud:  
Survey theme/template: 
==================
Dear Lime Survey Forum, 

I am having a problem with randomizing following questions. 
I am having an initial question (in my attached survey G02Q05 of treatment Group 2), this question can be anserwerd with Yes (Option 1) or No (Option 2). Depending on the answer I there are different questions following: If Yes, next there will be a 50% chance of 2 questions following and If the answer is no the same. 
I included a equation question( RandQ ) with the funktion rand(1,2) on the condition that G02Q05 == 1, followed by two questions conditioned to  RandQ  == 1 or  RandQ  == 2.
I did the same for the condition on the condition that G02Q05 == 2.
Therefore I am having one initial question followed by 6 questions (two conditional randomization equations and 4 conditional questions), but they are not shown when I preview the survey. They do not apear when testing the survey. 
Can you please help me to find the error, I attached the survey, relevant treatment group is Treatmen Group 2 
 
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago - 1 week 5 days ago #265794 by holch
There is no attached survey.

Also, if you attach surveys (LSS files, never LSQ or LSG), please do not attach the who survey, but only a LSS file with the relevant questions. So if there is more in your survey, please make a copy, delete all unnecessary questions and groups and export it as LSS file. Makes our life easier.

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

Last edit: 1 week 5 days ago by holch.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #265796 by holch
Please do not cross post in different sub-forums. I have just seen that you posted this (with LSS file) in an another sub-forum.

I will close this thread. Please continue in the other one.

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #265797 by Joffm
Hi, reading this your design seems to be a bit strange.

1. You need only one random number, preferable created a t the start (of this group)
If I assume, Yes is coded  "1" and No is coded "2"
one question of the "Yes" branch has the condition QYesNo==1 and RandQ==1
anfd the other QYesNo==1 and RandQ==2

Analogue for the "No" branch.
QYesNo==2 and RandQ==1
QYesNo==2 and RandQ==2


But better you send the lss export, as @holch advised.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose