Welcome to the LimeSurvey Community Forum

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

Screenouts

  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago - 10 years 2 months ago #113082 by holch
Screenouts was created by holch
Screenouts are coming up from time to time in the forum.

Unfortunately Limesurvey does not have a real screen out system.

For simple screenout rules the workaround with the zero quotas works quite well.

But what if the screenout needs to be based on more than one question? I was told before, that then "scenarios" should be used. But this would mean that this scenario condition would have to be applied to every subsequent question and also there would be no way to redirect to a different end url (important for panels).

Now I had the idea to use an equation question and create a rule that would write "screenout" or "continue" based on responses to various previous questions. Based on this you could again use the zero quota, but quotas do not work with equation question.

Here is a real life problem: www.limesurvey.org/en/community-services...nking-design?#113066

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

Last edit: 10 years 2 months ago by holch.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113098 by tpartner
Replied by tpartner on topic Screenouts
You can use the assignment operator in an equation type question to control the screen-out radio question.

Of course, you will want to place the equation question after the radio.

Here's an example equation that would screen-out if gender code is "A1" and the age code is "A5".
Code:
{screenout = if(gender == "A1" AND age == "A5","out","in")}

File Attachment:

File Name: limesurvey...0-06.lss
File Size:21 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113127 by holch
Replied by holch on topic Screenouts
This looks really great, Tony!

I was just wondering if there is any specific reason for the Javascript code in the first two questions. I don't think the code is necessary and these are leftovers, right?

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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 years 2 months ago - 10 years 2 months ago #113129 by DenisChenu
Replied by DenisChenu on topic Screenouts
The screenout system with Equation assigment it's the only reason of this bug report : bugs.limesurvey.org/view.php?id=7895

Denis :)

PS:
- This need a manual page maybe
- Reming fixed for 2.00 up to 130708, broken for 2.05 before 140717

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 10 years 2 months ago by DenisChenu.
The topic has been locked.
  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113131 by holch
Replied by holch on topic Screenouts
Hi Dennis!

Not sure how to read your response. But from what I understood: it is fixed and the equation assignment should work now to use it for screenouts, correct?

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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113132 by tpartner
Replied by tpartner on topic Screenouts

I was just wondering if there is any specific reason for the Javascript code in the first two questions. I don't think the code is necessary and these are leftovers, right?

Yep, sorry, that's what I get for re-using test surveys.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113133 by holch
Replied by holch on topic Screenouts
No problem! I was just a little confused but it did not make any sense to me, so I thought it might be just a left over.

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.
More
10 years 2 months ago - 10 years 2 months ago #113134 by meeko434
Replied by meeko434 on topic Screenouts
There is an error message with the link. Thanks so much! So glad holch made a forum for this topic. I used the code tpartner provided, there is no way to test out screenouts on inactive surveys correct? Just want to make sure the screen out works before I send my survey out. You all are awesome!!!
Last edit: 10 years 2 months ago by meeko434. Reason: forgot information
The topic has been locked.
  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113135 by holch
Replied by holch on topic Screenouts
Which link?

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.
More
10 years 2 months ago #113137 by meeko434
Replied by meeko434 on topic Screenouts
The example you posted in your first post.
The topic has been locked.
  • holch
  • holch's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #113138 by holch
Replied by holch on topic Screenouts
Ahhh, it is actually just a link to your post about your screening needs over 2 questions. ;-)

But I think, with the example from Tpartner, you should now be able to solve your problem, right?

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

The following user(s) said Thank You: meeko434
The topic has been locked.
More
10 years 1 month ago #113356 by meeko434
Replied by meeko434 on topic Screenouts
Thanks for all your help, the team at Limesurvey is AWESOME!! Just want to triple check I have this right before I send my survey out. I used the equation tpartner gave me, so those that are being screened out will be presented with my Quota message. I have an end url, will does that aren't screened out be automatically taken to my second survey with the end url or will they still have to click the link? Just want to make sure, don't want to lose participants because they didn't click the link. Thanks
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose