- Posts: 185
- Thank you received: 11
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
- Topic Author
- Offline
- Elite Member
Less
More
4 years 9 months ago - 4 years 9 months ago #186709
by bulgin
2 disqualification questions, need unique exit URLs was created 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.
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: 4 years 9 months ago by bulgin. Reason: clarify question
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 9 months ago #186715
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic 2 disqualification questions, need unique exit URLs
Nested if is available
{if(verification != 2, equation1, if(verification2 != 3,equation2,equation3) )}
{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 , plugin development .
I don't answer to private message.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 9 months ago - 4 years 9 months ago #186721
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic 2 disqualification questions, need unique exit URLs
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
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: 4 years 9 months ago by Joffm.
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 8 months ago #186767
by bulgin
Replied by bulgin on topic 2 disqualification questions, need unique exit URLs
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!
Thanks Denis!
Lime Survey rocks!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 8 months ago #186769
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic 2 disqualification questions, need unique exit URLs
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 8 months ago - 4 years 8 months ago #186817
by bulgin
Replied by bulgin on topic 2 disqualification questions, need unique exit URLs
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.
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: 4 years 8 months ago by bulgin. Reason: Figured out quotas
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 8 months ago #186820
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic 2 disqualification questions, need unique exit URLs
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 8 months ago #186823
by DenisChenu
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 , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic 2 disqualification questions, need unique exit URLs
Issue with Ajax Mode in theme , seems fixed in 3.17.7 or before.bulgin wrote: … if activated just returns the user to the beginning of the survey. …
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 8 months ago #186829
by bulgin
Replied by bulgin on topic 2 disqualification questions, need unique exit URLs
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!
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.
- jennh01851
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
4 years 2 months ago #193107
by jennh01851
Replied by jennh01851 on topic 2 disqualification questions, need unique exit URLs
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.
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.
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 2 months ago - 4 years 2 months ago #193108
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic 2 disqualification questions, need unique exit URLs
I activated the survey,
set the quota limit to "0", I think this is intended,
changed the quota-url to "http:// 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
set the quota limit to "0", I think this is intended,
changed the quota-url to "http:// 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 2 months ago by Joffm.
The topic has been locked.
- jennh01851
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
4 years 2 months ago #193114
by jennh01851
Replied by jennh01851 on topic 2 disqualification questions, need unique exit URLs
So strange. Still not working for me.
I have attached the survey again.
I have attached the survey again.
Attachments:
The topic has been locked.