Fill multiple surveys on same machine with query-string param

More
3 years 6 months ago #102861 by rocb
rocb created the topic: Fill multiple surveys on same machine with query-string param
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

Please Log in to join the conversation.

More
3 years 6 months ago #102862 by holch
holch replied the topic: Fill multiple surveys on same machine with query-string param
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'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
The following user(s) said Thank You: rocb

Please Log in to join the conversation.

More
3 years 6 months ago #102863 by holch
holch replied the topic: Fill multiple surveys on same machine with query-string param

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
The following user(s) said Thank You: rocb

Please Log in to join the conversation.

More
3 years 5 months ago #102956 by Spydre13
Spydre13 replied the topic: Fill multiple surveys on same machine with query-string param
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

Please Log in to join the conversation.

More
3 years 5 months ago #103001 by DenisChenu
DenisChenu replied the topic: Fill multiple surveys on same machine with query-string param

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 5 months ago #103436 by holch
holch replied the topic: Fill multiple surveys on same machine with query-string param
Now I need to use this feature as well, but somehow it doesn't work for me.

I have added
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?
http://surveys.domain.com/sc3/index.php/244733/newtest;=Y

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

Please Log in to join the conversation.

More
3 years 5 months ago #103443 by DenisChenu
DenisChenu replied the topic: Fill multiple surveys on same machine with query-string param
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 5 months ago #103448 by holch
holch replied the topic: Fill multiple surveys on same machine with query-string param
Thanks, will give it a try. And if this works, I'll update the manual.

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

Please Log in to join the conversation.

More
3 years 5 months ago #103455 by tpartner
tpartner replied the topic: Fill multiple surveys on same machine with query-string param
Or this?
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.

Please Log in to join the conversation.

More
3 years 5 months ago - 3 years 5 months ago #103474 by DenisChenu
DenisChenu replied the topic: Fill multiple surveys on same machine with query-string param
@tpartner are rigth and I'm wrong ....

2 solution:
http://surveys.domain.com/sc3/index.php/244733/newtest/Y
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 5 months ago by DenisChenu.

Please Log in to join the conversation.

More
3 years 5 months ago #103557 by dweisser
dweisser replied the topic: Fill multiple surveys on same machine with query-string param
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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now