Welcome to the LimeSurvey Community Forum

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

Fill multiple surveys on same machine with query-string param

More
10 years 3 months ago #102861 by rocb
Using Version 2.00+ Build 131206

I have a survey which is intended to be filled-out multiple times on the same computer using links with query parameters like:

phoenix.net/surveytest/index.php?sid=513483&513483X15X87=49482
phoenix.net/surveytest/index.php?sid=513483&513483X15X87=98732
phoenix.net/surveytest/index.php?sid=513483&513483X15X87=94948

The auto-fill only works for the 1st click. After that, I am forced to clear the browser cache before clicking on the next link.

Is there any method that will allow me to fill-out all the surveys, starting with the link with parameters and without manually clearing the cache ?

-rocb
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 3 months ago #102862 by holch
someone had the same problem here lately and the solution was posted here. I think you need to add a variable like newtest or something. I think it is also written in the limesurvey manual.

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

The following user(s) said Thank You: rocb
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 3 months ago #102863 by holch

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

The following user(s) said Thank You: rocb
The topic has been locked.
More
10 years 2 months ago #102956 by Spydre13
That could have been me, I asked the same question a few weeks back. The newtest=Y does work, but it also seems to clear answers if you're using tokens and go back in to a survey in-progress (which is probably why the option is called "newtest").

I was thinking about adding a custom URL parameter, maybe called "newsession" or something similar, for this purpose that would just kill the session and not do anything else. Or maybe it would be helpful to have a site-wide or survey-specific option to always kill the session when first entering the survey.

I'm guessing a lot of people are using the "newtest" parameter just for this purpose, and don't really require to reset that survey response. Or maybe I'm misunderstanding what this parameter does.

-Nate
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103001 by DenisChenu

Spydre13 wrote: I'm guessing a lot of people are using the "newtest" parameter just for this purpose, and don't really require to reset that survey response. Or maybe I'm misunderstanding what this parameter does.

Hi,

I think if you set "Enable token-based response persistence?" to YES, it's OK.

If not : review if you have 'use left' to 1 for this token ,

If yes : test with last version and fill a bug report.

Denis

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103436 by holch
Now I need to use this feature as well, but somehow it doesn't work for me.

I have added
Code:
newtest;=Y
, but it still gives us the same error message.

Could it be that this doesn't work with the new URL format? How would it have to look like?

Like this?
Code:
http://surveys.domain.com/sc3/index.php/244733/newtest;=Y

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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103443 by DenisChenu
newtest=Y ?

no ;

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103448 by holch
Thanks, will give it a try. And if this works, I'll update the manual.

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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago #103455 by tpartner
Or this?
Code:
http://surveys.domain.com/sc3/index.php/244733/newtest/Y

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 2 months ago - 10 years 2 months ago #103474 by DenisChenu
@tpartner are rigth and I'm wrong ....

2 solution:
Code:
http://surveys.domain.com/sc3/index.php/244733/newtest/Y
Code:
http://surveys.domain.com/sc3/index.php/244733?newtest=Y

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.
Last edit: 10 years 2 months ago by DenisChenu.
The topic has been locked.
More
10 years 2 months ago #103557 by dweisser
Hey Guys,
I wanted to add to this incase it might help someone down the road.

In my case (LS version Version 2.00+ Build 131206, GoDaddy Server, Linux), my URLs look different than either of the examples provided here.

www.mydomain.com/survey/index.php?r=surv...x/sid/374875/lang/en

My simplified understanding of this string has:
-"survey" as the variable and "index" as it's value,
-"sid" as the variable and "374875" is it's value, and
-"lang" as the variable and "en" is it's value.

So, when I pass answer values to my survey, the query strings look like this:

www.mydomain.com/survey/index.php?r=surv...06X1438/AnswerValue3

where:
-newtest/Y/ is added for reasons described above and
-374875X206X1436/AnswerValue1 is the id of the answer field and it's value. (this is for short text question only, btw).

Hope it continues to help clarify this powerful feature for LS users.
David
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose