Check out the LimeSurvey source code on GitHub!

Exit the survey when you save

More
5 years 3 months ago #68543 by carlosanma
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

Please Log in to join the conversation.

More
5 years 3 months ago #68544 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 3 months ago #68554 by carlosanma
Where in the source code I could do this?

thanks

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #68567 by Mazi
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)survey-consulting.com'"
Last Edit: 5 years 3 months ago by Mazi.

Please Log in to join the conversation.

More
5 years 3 months ago #68577 by tpartner
If you are trying to modify this link, you can edit save.pstpl in your template.


Cheers,
Tony Partner

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

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form