Welcome to the LimeSurvey Community Forum

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

Repeated opening of same survey with different URL parameters won't update val

  • bogdanv
  • bogdanv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago - 3 years 8 months ago #204200 by bogdanv
Hi
I have to use a form with some auto-filled field values from the URL parameters.
The purpose of the form is to record attendance in several locations using location passed as URL parameter (QR code etc)
Set cookie to prevent repeated participation: Off
Enable token-based response persistence: Off since is public and want to allow anyone that scanned the code to submit.
Participant may save and resume later: unchecked since i don't want to save anything unless submitted. There are not many fields there.

Once you load the url the cookie is set and fields auto filled from URL parameters
Unless the form is submitted or Exit and clear the survey, the cookie won't reset.
If you don't submit and scan another location URL the browser will not update the fields with the new value and still remember the old values which makes everything useless.

Anyone has a solution to this issue?
I don't see the point with all those options if they go against the purpose, especially [Participant may save and resume later=off] why everything is recorded anyway ?

i really hope there is a fix to this and someone can help me.

Thanks
Last edit: 3 years 8 months ago by bogdanv.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months ago #204204 by tpartner
If you want to reset the fields populated via URL parameters, append &newtest=Y to the URL.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 8 months ago by tpartner.
The topic has been locked.
  • bogdanv
  • bogdanv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204205 by bogdanv
That is it!!!!
Thank you very much!
I was already looking into where session_name was set :P
The topic has been locked.
  • bogdanv
  • bogdanv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago - 3 years 8 months ago #204207 by bogdanv
Though this represents another issue in itself @tpartner
The best would have been to have a parameter to trigger update fields and not to generate a new entry on every refresh ;)
So this "newtest" can be disabled if it becomes an issue with spamming by those without much knowledge, and without adding tokens to the survey?
The best would be not to insert any new record when "save=off"
Last edit: 3 years 8 months ago by bogdanv.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose