2 disqualification questions, need unique exit URLs

More
1 month 6 days ago - 1 month 6 days 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: 1 month 6 days ago by bulgin. Reason: clarify question

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 6 days 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 service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago - 1 month 6 days 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: 1 month 6 days ago by Joffm.

Please Log in or Create an account to join the conversation.

More
1 month 5 days 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!

Please Log in or Create an account to join the conversation.

More
1 month 5 days 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 service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 days ago - 1 month 4 days 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.
Attachments:
Last edit: 1 month 4 days ago by bulgin. Reason: Figured out quotas

Please Log in or Create an account to join the conversation.

More
1 month 4 days 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

Please Log in or Create an account to join the conversation.

More
1 month 4 days 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 service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 3 days 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!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!