- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Where is the PHP file for the "End of Survey" page?
- ArriFerrari
- Topic Author
- Offline
- New Member
Less
More
5 years 10 months ago #169938
by ArriFerrari
Where is the PHP file for the "End of Survey" page? was created by ArriFerrari
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
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:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
5 years 10 months ago #169947
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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.
The topic has been locked.
- ArriFerrari
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 10 months ago #169961
by ArriFerrari
Replied by ArriFerrari on 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:
youtu.be/FqBAxAKDjnY
However, I’m not sure how to get the current survey seed (limited PHP knowledge)
I was thinking of using this method:
youtu.be/FqBAxAKDjnY
However, I’m not sure how to get the current survey seed (limited PHP knowledge)
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
5 years 10 months ago - 5 years 10 months ago #169963
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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.
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: 5 years 10 months ago by tpartner.
The topic has been locked.
- ArriFerrari
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 10 months ago #169966
by ArriFerrari
Replied by ArriFerrari on 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?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
5 years 10 months ago #169968
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
5 years 10 months ago - 5 years 10 months ago #169988
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on 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
Here you can do what you want (in PHP) for example curl a pythin script (or exec if able)
PS : and seed is
Code:
$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 , plugin development .
I don't answer to private message.
Last edit: 5 years 10 months ago by DenisChenu.
The topic has been locked.