Where is the PHP file for the "End of Survey" page?

More
1 week 1 day ago #169938 by ArriFerrari
ArriFerrari created the topic: Where is the PHP file for the "End of Survey" page?
I am working in XAMPP to do a proof of concept.

Once a survey participant clicks "Submit", I want to run a python script and display the resulting HTML doc, if they actually finished the survey and didn't forget a mandatory question on the last page.

Which PHP file do I use to edit the final display page? See attached
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #169947 by tpartner
tpartner replied the topic: Where is the PHP file for the "End of Survey" page?
LimeSurvey version?

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

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #169961 by ArriFerrari
ArriFerrari replied the topic: Where is the PHP file for the "End of Survey" page?
The most recent, 3.11 version. Also I need to pass the current survey “seed” into my Python script.

I was thinking of using this method:


However, I’m not sure how to get the current survey seed (limited PHP knowledge)

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago - 1 week 1 day ago #169963 by tpartner
tpartner replied the topic: Where is the PHP file for the "End of Survey" page?
In 3.x, the survey views are rendered by Twig files - in this case, submit.twig.

I doubt you can use Python in Twig files.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 week 1 day ago by tpartner.

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #169966 by ArriFerrari
ArriFerrari replied the topic: Where is the PHP file for the "End of Survey" page?
Let’s assume I find a way. How do I reference the survey seed?

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #169968 by tpartner
tpartner replied the topic: Where is the PHP file for the "End of Survey" page?
Sorry, I can't help with that.

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

Please Log in or Create an account to join the conversation.

More
1 week 12 hours ago - 1 week 12 hours ago #169988 by DenisChenu
DenisChenu replied the topic: Where is the PHP file for the "End of Survey" page?
See Demo plugin : github.com/LimeSurvey/LimeSurvey/blob/ma...nse/ShowResponse.php

Here you can do what you want (in PHP) for example curl a pythin script (or exec if able)

PS : and seed is
$response['seed']

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 1 week 12 hours ago by DenisChenu.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!