Welcome, Guest
Username: Password: Remember me

TOPIC: Exit the survey when you save

Exit the survey when you save 2 years 10 months ago #68543

  • carlosanma
  • carlosanma's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 1
Hi I need to do that when the user saves the survey, instead of going to the survey,
out of the survey

thank you very much
The administrator has disabled public write access.

Re: Exit the survey when you save 2 years 10 months ago #68544

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
Sorry, but there is no inbuild feature for this. You'd have to modify the source code to add a redirect to a certain page after saving.

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: Exit the survey when you save 2 years 10 months ago #68554

  • carlosanma
  • carlosanma's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 1
Where in the source code I could do this?

thanks
The administrator has disabled public write access.

Re: Exit the survey when you save 2 years 10 months ago #68567

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
Have a look at the "common_functions.php" file ~line 2776 and search for "function templatereplace($line, $replacements=array())". There is a line
if (strpos($line, "{SAVEMESSAGE}") !== false) $line=str_replace("{SAVEMESSAGE}", $clang->gT("Enter a name and password for this survey and click save below.")."<br />\n".$clang->gT("Your survey will be saved using that name and password, and can be completed later by logging in with the same name and password.")."<br /><br />\n".$clang->gT("If you give an email address, an email containing the details will be sent to you.")."<br /><br />\n".$clang->gT("After having clicked the save button you can either close this browser window or continue filling out the survey."), $line);

This just replaces some string values but maybe you can inject your code there.

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'"
Last Edit: 2 years 10 months ago by Mazi.
The administrator has disabled public write access.

Re: Exit the survey when you save 2 years 10 months ago #68577

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4193
  • Thank you received: 788
  • Karma: 359
If you are trying to modify this link, you can edit save.pstpl in your template.

Capture_2011-11-08.GIF
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.095 seconds
Donation Image