Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Fill multiple surveys on same machine with query-string param

Fill multiple surveys on same machine with query-string param 2 years 11 months ago #102861

  • rocb
  • rocb's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
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 administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 11 months ago #102862

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5417
  • Thank you received: 806
  • Karma: 239
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
The following user(s) said Thank You: rocb

Fill multiple surveys on same machine with query-string param 2 years 11 months ago #102863

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5417
  • Thank you received: 806
  • Karma: 239
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
The following user(s) said Thank You: rocb

Fill multiple surveys on same machine with query-string param 2 years 11 months ago #102956

  • Spydre13
  • Spydre13's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
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 administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 11 months ago #103001

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
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 (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103436

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5417
  • Thank you received: 806
  • Karma: 239
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
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103443

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
newtest=Y ?

no ;
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103448

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5417
  • Thank you received: 806
  • Karma: 239
Thanks, will give it a try. And if this works, I'll update the manual.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103455

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
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.
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103474

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
@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 (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 2 years 10 months ago by DenisChenu.
The administrator has disabled public write access.

Fill multiple surveys on same machine with query-string param 2 years 10 months ago #103557

  • dweisser
  • dweisser's Avatar
  • Offline
  • Gold Lime
  • Posts: 222
  • Thank you received: 5
  • Karma: 5
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 administrator has disabled public write access.
Time to create page: 0.310 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form