Redirect to one of two different end URLs

Plus d'informations
il y a 2 ans 10 mois #139057 par wshead
COM_KUNENA_MESSAGE_CREATED_NEW
I would like to automatically redirect participants at the end of my survey to one of two different URLs, depending on their answers to questions in the survey. Is this possible?

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 ans 10 mois #139059 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
Yes, you can use Expression Manager to pipe in the appropriate URL.

It may be easiest to place the URLs in separate equation type questions, then your end URL could be an expression like:

{if(q1 == 1, equation1, equation2)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Les utilisateur(s) suivant ont remercié: wshead

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 10 mois #139060 par wshead
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you for your help and prompt reply, Tony.

I"m very much a beginner when it comes to this stuff. I'm not sure what you mean by "separate equation type questions." Perhaps you could provide a quick model of what exactly would be entered into the "End URL" box under General Settings with the following parameters:
Answer to q1 = 1, end URL is abc.com
Answer to q1 = 2, end URL is xyz.com

Thanks again.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 10 mois #139064 par holch
COM_KUNENA_MESSAGE_REPLIED_NEW
He provided it already. Create two equation questions, in equation1 you put the url abc.com, in the second one you put the URL xyz.com.

Then use the code Tpartner was giving in the End URL field. It will check if the code is 1, then it will use the content of equation1 and if not it will use the value of equation2.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Les utilisateur(s) suivant ont remercié: tpartner, wshead

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 10 mois #139225 par wshead
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you. As I mentioned I'm very much a beginner at LS. To give you an idea it took me a while to figure out that I was supposed to simply enter the URL into the question field of the equation question (I thought I needed to enter an actual equation with = symbols and such).

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 7 mois - il y a 2 ans 7 mois #143412 par nique
COM_KUNENA_MESSAGE_REPLIED_NEW
Apologies for posting to an old post but this works perfectly for me except I am struggling with EM.

How would I adjust the IF statement for 4 equations?

If 1 - Web A, if 2 - Web B, if 3 - Web C, if 3 - Web D.

I have this but it does not seem to be working - if(A1 == 1, equation1, if(A1 == 2, equation2, if(A1 == 3, equation3, if(A1 == 4, equation4))))

Thank you.
Last edit: il y a 2 ans 7 mois by nique.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 7 mois #143422 par Ben_V
COM_KUNENA_MESSAGE_REPLIED_NEW
Try something around:
{if(A1 == 1, equation1, if(A1 == 2, equation2, if(A1 == 3, equation3, equation4)))}

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Les utilisateur(s) suivant ont remercié: nique

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 7 mois #143458 par nique
COM_KUNENA_MESSAGE_REPLIED_NEW
EM will be the death of me.

THANK YOU!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 7 mois - il y a 2 ans 7 mois #143475 par Ben_V
COM_KUNENA_MESSAGE_REPLIED_NEW

nique écrit: EM will be the death of me.


Em don't use a strict " if -> else if -> else " syntax but it's pretty the same and easier than you can expect...

equation1 = if statement
equation2 = else if statement
equation3 = else if statement
equation4 = else statement

Remember that there are buttons (at survey/group/question level) to check your EM syntax
For more complex equations, you can use some line break for more readability ;)
{
    if (A1 == 1, equation1,
        if (A1 == 2, equation2,
            if (A1 == 3, equation3, equation4)))
}

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: il y a 2 ans 7 mois by Ben_V.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 7 mois - il y a 2 ans 7 mois #143476 par tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
Yes, Expression Manager uses the Excel format for IF() statements:

if(condition, 'Returned if true', 'Returned if false (can be another IF() statement)')

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: il y a 2 ans 7 mois by tpartner.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 1 mois - il y a 2 ans 1 mois #151914 par JaredStapleton
COM_KUNENA_MESSAGE_REPLIED_NEW
For any other beginners who stumble here- don't forget the "redirect automatically" setting under Presentation and Navigation, and for me I had to activate the survey before the redirection would work. Otherwise you just see the url on the end page as a link.
Last edit: il y a 2 ans 1 mois by JaredStapleton.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 2 semaines #176261 par surveySn
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi tpartner,I have tried many times, but failed, can you make a LSS?

Thanks very much.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 2 semaines #176265 par surveySn
COM_KUNENA_MESSAGE_REPLIED_NEW
I will. I forgot to add http://

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 mois 2 semaines #176282 par holch
COM_KUNENA_MESSAGE_REPLIED_NEW

can you make a LSS?

How about you providing a LSS file showing what you have tried? Makes a lot more sense.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine #178064 par KompetenzZ
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi,

I have tried the procedure described here with LS Version 3.14 but unfortunately I cannot find the error. After finishing the survey, an error page is shown (see screenshot).
My if condition in the end url is:
{if((Q2_1 == "Y"), equrl1, equrl2)}

Screenshot and lss sample survey are attached.


Fichier attaché :

Nom du fichier : limesurvey...4872.lss
Taille du ficher :29 ko

Cheers kompetenzz
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!