Welcome to the LimeSurvey Community Forum

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

Conditional re-directing

  • Shmilc123
  • Shmilc123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168394 by Shmilc123
Conditional re-directing was created by Shmilc123
Hello :)
I'm building a simple survey with 2 open-ended questions, and 5 multiple option questions.
One of my questions asks: "How would you rate our services" (1-5 stars).
I want to send people who gave 3 stars or below to page X, and people who gave 4 stars or above to page Y.

With the free edition, can I condition the "thank you page" that comes after the survey - depending on the answer?

Thanks a lot ;]
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168404 by holch
Replied by holch on topic Conditional re-directing
You can use the end URL feature and you can use Expression Manager in this field, where you can check the value given in the specific question and then redirect to the specific URL.

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.
  • Shmilc123
  • Shmilc123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168512 by Shmilc123
Replied by Shmilc123 on topic Conditional re-directing
First of all thanks for the help, it's not taken for granted×¥

Secondly, I'm an extremely Fresh Lemon XD
So, could you elaborate a little bit about the steps I have to take?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168514 by holch
Replied by holch on topic Conditional re-directing
Please, no private messages about support. This should be covered in the forum, this way others also might be able to learn from it.

What did you do so far? Did you read about the End URL Feature? Did you read about Expression Manager?

What are your specific questions? You need to create an expression that reads in the response to the rating question and then if "response > 3" --> put the URL Y --> else URL X.

Something like this:

{if(response > 3, "http://urly", "http://urlx")}


Assuming that the question code of the rating question is "response" and the answer options are 1, 2, 3, 4, 5.

However, as we don't know the structure of your survey and specifically for the rating question, you will have to make the necessary adaptions to this code.

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
5 years 11 months ago #168516 by Joffm
Replied by Joffm on topic Conditional re-directing
Hi, you did not clarify, what means:

I want to send people who gave 3 stars or below to page X, and people who gave 4 stars or above to page Y.


Are these LimeSurvey pages, or other pages in the web?

holch thought of the second, when saying "end-url".

Well, there is the option "end-url" in "Text elements", and the option "automatically load url when survey completed" in "Presentation"

The "end-url" looks like "http://www.to_this_site_I_send_you.com" or " limesurvey.org "

And of course you can use Expression manager to fill the end-url, e.g.
{if(Q1<4,"http://www.the_site_of_three_stars_and_less.com","http://www.the_site_of_four_stars_and_more.com")}

Read the manual about Expression Manager, and study the demo surveys.


BUT: If you only want to show different questions to the people depending on their star rating, just use relevance equation.

With the free edition, can I condition the "thank you page" that comes after the survey - depending on the answer?

No, but create a page of type "text display" just before the end.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #168517 by holch
Replied by holch on topic Conditional re-directing

Are these LimeSurvey pages, or other pages in the web?

holch thought of the second, when saying "end-url".


Great catch, Joffm! Indeed, it could also be just a normal condition / relevance equation.

So yes, we need more information / clarification what you are actually trying to do. When I read "re-directing" I am automatically thinking of url redirecting and not about branching or conditions.

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

Last edit: 5 years 11 months ago by holch.
The topic has been locked.
  • Shmilc123
  • Shmilc123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168576 by Shmilc123
Replied by Shmilc123 on topic Conditional re-directing
Thanks a lot for the help guys, I'll be more specific.

I want everyone to take the same survey with the same questions.
I don't want the survey itself to change depending on the answers,
but only the "thank you page" that comes after they finish the survey.


I just want people who gave 4+ stars to submit a review after they finish (PAGE X),
and people who gave 3- stars to see another page.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #168580 by tpartner
Replied by tpartner on topic Conditional re-directing
You can place relevance on groups to hide/show them depending on previous answers.

Please refer to the manual - manual.limesurvey.org/Question_groups_-_...reate_question_group

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 11 months ago by tpartner.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #168618 by holch
Replied by holch on topic Conditional re-directing
Still not 100% clear. Because when I read it, I thought: Oh, clearly he wants to redirect to an external page, where people can then do their review. So you could just apply my solution with the End URL.

Now it seems that Tpartner understood it totally different, and thinks you want some kind of text question in Limesurvey for the review.

Both completely valid interpretations of what you describe.

So, what exactly is "Page X"? Another "page" (or question) in the survey or an external page (not part of the Limesurvey survey), e.g. Google Reviews, Yelp, etc.?

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

Last edit: 5 years 11 months ago by holch.
The topic has been locked.
  • Shmilc123
  • Shmilc123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168709 by Shmilc123
Replied by Shmilc123 on topic Conditional re-directing
Ok so the star-rating in the survey suppose to filter the -3 from the +4.

When they finish the survey, I want to send +4 people to an external page (google reviews).
And I want to send -3 people to another external page.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168711 by holch
Replied by holch on topic Conditional re-directing
Then you can just follow my instructions about the End URL. You can use Expression Manager in the end url.

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.

Lime-years ahead

Online-surveys for every purse and purpose