Welcome, Guest
Username: Password: Remember me

TOPIC: How do I stop LimeSurvey displaying an error to return users?

How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70221

  • boughtonp
  • boughtonp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: -1
Using Version 1.91+ Build 11379, I have a survey setup which prevents multiple votes.

When returning to the survey after already having answered, it says:

---
Error
You have already completed this survey.
Please contact Name ( Email ) for further assistance.
---

It should NOT say this - it should repeat the question(s) and say "you answered X".

How do I make it do that?
Last Edit: 2 years 4 months ago by boughtonp. Reason: added version info
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70227

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 389
  • Thank you received: 40
  • Karma: 15
boughtonp wrote:
I have a survey setup which prevents multiple votes.

It should NOT say this - it should repeat the question(s) and say "you answered X".

You activated the option to prevent multiple fill-outs but want Limesurvey to "repeat the question(s)"? This sounds to me like a contradiction. Prevent fill-outs means "don't show questions again" to me.
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70248

  • boughtonp
  • boughtonp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: -1
I activated the option to prevent multiple responses, in order to avoid results being skewed by people responding multiple times. Displaying questions is not a contradiction to this.

More importantly, enabling the option does not mean I want people who follow the survey link again to be told they caused an error and need to email someone for help.


Is it currently possible to display the question text again - with answer inputs removed/disabled/whatever - instead of this false error message?

If not, what script(s) do I need to modify to change this error message?
It doesn't appear to be in the template files?
Last Edit: 2 years 4 months ago by boughtonp.
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70253

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
To adjust the error message you can edit the translation file.

If you want people to be able to edit/view their answers once they submitted them, enable the "token based answer persistance" at tghe survey settings. Important: Your survey has to be anonymous for this to work: docs.limesurvey.org/Creating+a+new+surve...or+LimeSurvey#Tokens

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70289

  • boughtonp
  • boughtonp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: -1
Thanks Mazi.

The survey is already set to anonymous, I set "Enable token-based response persistence" to Yes, but it's still showing the error when returning.

(I tried deleting all cookies and re-voting but that didn't help.)

Any ideas?
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70290

  • boughtonp
  • boughtonp's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: -1
I've solved this for now by changing index.php from line 556 to this:
echo templatereplace(file_get_contents("$thistpl/startpage.pstpl"));
	echo templatereplace(file_get_contents("$thistpl/already-completed.pstpl"));
	echo templatereplace(file_get_contents("$thistpl/endpage.pstpl"));

And then creating already-completed.pstpl in the template dir with suitable HTML to replicate the survey.

Of course, this means when the next survey is done (or if any text is edited) I'll need to change the already-completed file too, so not an ideal solution, but it solves the immediate problem.
The administrator has disabled public write access.

Re: How do I stop LimeSurvey displaying an error to return users? 2 years 4 months ago #70299

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
Sorry, there was a "not" missing at my previous statement:
enable the "token based answer persistance" at tghe survey settings. Important: Your survey has to be NOT anonymous for this to work.

Otherwise there is no connection to the token table data.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.164 seconds
Donation Image