Welcome to the LimeSurvey Community Forum

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

My redirects links do not work for the providers

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 4 weeks ago #251625 by sahra4500
Please help us help you and fill where relevant:
Your LimeSurvey version: [Version 5.4.3+220926]
Own server or LimeSurvey hosting:Polymtl
Survey theme/template:Inherit
==================
(My redirects links do not work for the providers)
I have a survey and I got three links from my providers for Complete, Quota, and Screenout. 
I used the complete code in END URL link, Quota for limiting the number of people for certain hidden question by creating another mixed variable, and Screenout for consent question. 

I followed the exact procedure form LS manual for creating panel integration (creating a parameter, etc from here:  manual.limesurvey.org/Panel_integration#The_complete_link ). 
The problem is the provider is saying they cannot redirect the links properly. 
I put the sample of my survey as well as the procedure that I followed here, and I really need help as I've been searching on this a long, and I have no idea where is the problem. 
 

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 4 weeks ago - 5 months 4 weeks ago #251629 by tpartner
Instead of using panel integration, I suggest writing the panel variables directly to your LimeSurvey questions via URL parameters.

- manual.limesurvey.org/URL_fields/en#Pref...using_GET_parameters

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 months 4 weeks ago by tpartner.

Please Log in to join the conversation.

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 4 weeks ago - 5 months 4 weeks ago #251632 by sahra4500
Replied by sahra4500 on topic My redirects links do not work for the providers
To be honest, I saw this, but the instruction was too way complicated for me!
I really didn't understand where I have to write this and set it and how it would change with my links that I need to give to my providers

Is there any more clear instruction for that?
Last edit: 5 months 4 weeks ago by sahra4500.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 4 weeks ago #251634 by Joffm
The link @tpartner gave explains how to fill a question with an URL parameter.
So, idf the question has the same name as the parameter, it will be stored there.
This is the same as.
I want to capture am URL parameter in my survey.
So, if the panel provider adss the parameter "leger_id" it is sufficient to create a question "leger_id".

The "panel integration" is IMHO only necessary if the parameter does not match the requirements of a LimeSurvey question code (starting with a number, contains underscores, etc). Then you have to use panel integration, to store the value of the "not allowed" parameter name into a question with an "allowed" name.
Also IMO do not use this "PASSTHRU".

Also sufficient ti pipe the variable into the end url like

api.legerweb.com/PassBack.aspx?pid={lege...}&SURVC=LW30802_010A ...


Now something about your survey design.
Do you really think people find it amazing to be bombarded by with 17 long batteries of items without time to breath
Please read this
 

File Attachment:

File Name: surveyfrie...0-29.zip
File Size:977 KB


Then two other things.

A. In G03Q40 there is a huge equation.
1. What for is the "join"? It is a single punch response with one answer.
2. Why did you do this?
If you had useed numerical codes in G01Q50 (1-8) and G01Q02 (1-13) you could havve done it with this simple equation
{G03Q39=(G01Q02-1)*8+G01Q50}

BTW: There is a mistake in your long equation here ...
if((G01Q02.NAOK == "001") AND (G01Q50.NAOK == "AO07"), "007"), if((G01Q02.NAOK == "001") AND (G01Q50.NAOK == "AO07"), "008"), if((G01Q02.NAOK == "002") AND (G01Q50.NAOK == "AO01"), "009"),

B. You show the map four times.
Why has the respondent to enter his city four times?
1. After his first choice you can set the sart goordinates of the following maps to the selected one
2. The map starts with "canada" and a really high zoom.
But you have the postcode?
Why don't you use it to show only a map of this area?
If you use the first three characters (FSA) you can show a map that is more pleasant to handle.


And last, but not least:
When I completed your survey with an arbitrarily parameter 123456ABCDEF

I get this end url
Code:
https://api.legerweb.com/PassBack.aspx?pid=123456ABCDEF&SURVC=LW30802_010A&flag=C&idCamp=119526&etk=2a854797-7539-4854-a889-3db58eca08e5
and this page
 

So, it looks fine though we do not know exactly which parameter Leger really adds to the survey.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 4 weeks ago - 5 months 4 weeks ago #251637 by sahra4500
Replied by sahra4500 on topic My redirects links do not work for the providers
Thanks for your reply.

About the long equation and using join, the idea was getting from here:
forums.limesurvey.org/index.php/forum/ca...-interlocking-quotas
The survey is across Canada, so I wanted to different people from all the provinces, and with different incomes level could reply.
I wrote all the possibilities and I set the quota based on that. (I followed this example as I said: forums.limesurvey.org/index.php/forum/ca...-interlocking-quotas ).
I came up with 104 lines.
Please correct me if I'm wrong, but you are saying I didn't need to do that?
The simple equation
{G03Q39=(G01Q02-1)*8+G01Q50} could do the same thing?

About the maps, it has to be asked 4 times, for four directions, because lime survey doesn't allow you to draw something like a polyline. And again, because it is across Canada, it cannot be limited to a specific city.

About the code, I tried to give the link to provider without PASSTHRU but it was the same problem.

I still have no idea what I can do.
Last edit: 5 months 4 weeks ago by sahra4500.

Please Log in to join the conversation.

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 4 weeks ago #251638 by sahra4500
Replied by sahra4500 on topic My redirects links do not work for the providers

So, if the panel provider adss the parameter "leger_id" it is sufficient to create a question "leger_id".

The LS I use doesn't allow underscores in question names. I get this error "Question codes must start with a letter and may only contain alphanumeric characters."

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 4 weeks ago #251639 by Joffm
Yes, that was a mistake.

But I wrote

The "panel integration" is IMHO only necessary if the parameter does not match the requirements of a LimeSurvey question code (starting with a number, contains underscores, etc).


Here I called the question "lid" and used panel integration.
 

Here you see the value is stored (to test do not hide questions)
 

And the end url looks like this.
Just set "Automatically load end URL when survey complete:"  to "OFF" instead to "ON" in your real survey

Then you see the end url
 

Now you can ask the panel provider what is wrong with it (except the self selected leger_id)

Calculation of combinations:
Usually this is rather easy.

{G03Q39=(G01Q02-1)*8+G01Q50} could do the same thing?
 

Of course. It's simple arithmetic.
G01Q02 is province with cosdes from 1-13
G01Q50 is income with codes from 1-8
Now - if you do not believe - test in Excel
 


Now the maps.

About the maps, it has to be asked 4 times, for four directions, because lime survey doesn't allow you to draw something like a polyline. And again, because it is across Canada, it cannot be limited to a specific city.

But the respondent lives in one city and the radius of child's walking is about a few kilometers, or.

The general question seems to be
"In this section, we are interested to know how far your child can walk from your home without an adult."
And first question is
"Here, please indicate the furthest destination to the NORTH (top of map) where your child can walk or cycle (or similar) without an adult". (Cycle??? In the group description you say "WALK")

So, the distance shouldn't be more than a few kilometers around the home.
So - in my opinion - it should be convenient if the map would show the area of the home.
And as you ask the postal code you may do that. 
The real easy thing is to show province initzially - the first letter of the code.
But better - though a bit work would be to show the map according to the FSA - the citty.

Create a question of type "long text" and as default answer you may insert 
#A1A47.5648 -52.7092
...
#A0Z48.5291 -58.5530
​​​​​​​...

After you asked the postal code you grab the coordinates with an equation and show this area.
I think this is better to start with then with "Canada".
 
The respondent then clicks the point of the northest destination.
Now without any problems you may set these north coordinates as initial coordinates od the next question. (EAST)
As this will be only some kilometers away from the northest point, it will be fine.
And so on.

But as always, it is your survey.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: sahra4500

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 3 weeks ago #251648 by tpartner
Here is a workaround allowing selecting multiple points on a single map - forums.limesurvey.org/forum/can-i-do-thi...ns-on-the-map#251297

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: sahra4500

Please Log in to join the conversation.

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago #251685 by sahra4500
Replied by sahra4500 on topic My redirects links do not work for the providers
Thanks,
I still have the problem with redirecting links.

I removed PASSTHRU and still it was an issue. I added it back and now it tells me PASSTHRU is an undefined variable.

Do you have any idea how I can fix it?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 3 weeks ago #251687 by Joffm
"Still it was an issue" is not a suitable information.
Which issue?

Did you do what I wrote?
Just set "Automatically load end URL when survey complete:"  to "OFF" instead to "ON" in your real survey

Call the survey with an added parameter "&leger_id=MyParameter".
Did you see your parameter in the "short text" question?
Did you enter the end-url as "api.legerweb.com/PassBack.aspx?pid={lid}&SURVC=LW30802_010A ..."

How did the shown end-url at the end of the survey look like?
Should be 
"api.legerweb.com/PassBack.aspx?pid=MyParameter&SURVC=LW30802_010A ..."
Was it?
Did you show it to your panel provider?
What did he say? Where is the issue?

Here is a small sample survey.
Call it with the added parameter and see what happens.

 

File Attachment:

File Name: limesurvey...3771.lss
File Size:43 KB

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • sahra4500
  • sahra4500's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 3 weeks ago #251694 by sahra4500
Replied by sahra4500 on topic My redirects links do not work for the providers
I guess the answer for all was Yes, however, I couldn't find this option 

Automatically load end URL when survey complete:"  to "OFF" instead to "ON" in your real survey

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 3 weeks ago #251695 by holch
It is in the general settings of your survey.

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

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose