Welcome to the LimeSurvey Community Forum

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

2 disqualification questions, need unique exit URLs

  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 3 months ago - 5 years 3 months ago #186709 by bulgin
Hello, I currently use a formula to provide two different exit URL's depending on the answer to the first multiple choice question in the survey.

It works fine:

End URL: {if(verification != 2, equation1, equation2)}

However, I also need to provide yet a third possible exit URL if the participant answers another disqualifying multiple choice question further into the survey (assuming they haven't activated equation1 already), which is called equation3. I'm pretty sure the EM can be used to accommodate this third equation but I'm a beginner with the equation formulas.

Can Limesurvey do these nested formulas and if so, some pointers would be really helpful?

I can't figure this one out.

Thank you.
Last edit: 5 years 3 months ago by bulgin. Reason: clarify question
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 3 months ago #186715 by DenisChenu
Nested if is available

{if(verification != 2, equation1, if(verification2 != 3,equation2,equation3) )}

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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago - 5 years 3 months ago #186721 by Joffm
As usual, a small sample with the relevant questions (*.lss) would have been helpful.

You're topic is "2 disqualification questions"
So I assume the respondents are screened out if the answer these question in the disqualifying way.
In this case just set a quota with value=0 and the respective quotafull URL

If not, as said before, send a sample.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 3 months ago by Joffm.
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 3 months ago #186767 by bulgin
As usual DenisChenu suggestions were spot on! Not only did it work, but I learned more coding which will be most beneficial down the road.

Thanks Denis!

Lime Survey rocks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 3 months ago #186769 by DenisChenu
The solution from Joffm can be great too :)

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.
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 3 months ago - 5 years 3 months ago #186817 by bulgin
Okay, so I finally figured out quotas - thanks for suggesting them Joffm.

I have them working but it never loads the terminate URL. Just the standard "Your results have been recorded" if survey is not activated and if activated just returns the user to the beginning of the survey.

Note: running on localhost. Would that nix loading of a URL?

See some screenshots.
Last edit: 5 years 3 months ago by bulgin. Reason: Figured out quotas
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #186820 by Joffm
Of course it works only if activated.
That's because you misuse a quota as a screenout.
And a quota can only be calculated if there are answers in the database.

Nevertheless, you should send your survey as *.lss

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 3 months ago #186823 by DenisChenu

bulgin wrote: … if activated just returns the user to the beginning of the survey. …

Issue with Ajax Mode in theme , seems fixed in 3.17.7 or before.

Deactivate ajax mode or update your version (and always tell us your version)

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.
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 3 months ago #186829 by bulgin
Thanks Denis and Joffm - I upgraded to Version 3.17.7+190627 and the redirect using quotas only works with Ajax disabled - which is okay as I don't know what I'm losing by disabling Ajax I guess that's okay.

As well, I receive a notification that the default password is still in use but that's not the case - login password was changed (I assume that message refers to the limesurvey login credentials.)

Thanks to both of you for the excellent support!
The topic has been locked.
More
4 years 9 months ago #193107 by jennh01851
I am having a similar problem with quotas not auto redirecting. I am using Version 3.17.7+190627
I have a couple of places where they become disqualified. I have equations set up on final page that determine eligible or not. But even on the first question the quoats is not qorking. I have attached my survey.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #193108 by Joffm
I activated the survey,
set the quota limit to "0", I think this is intended,
changed the quota-url to "https:// www.google.com "

Answered "not interested" and was send to google.
Though I was a bit enoyed to have to answer some more questions, even if I said "not interested".

I did not test the other conditions.
But the quota works, and with correct values in eligible and eligible2 they should work as well.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 9 months ago by Joffm.
The topic has been locked.
More
4 years 9 months ago #193114 by jennh01851
So strange. Still not working for me.


I have attached the survey again.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose