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
  • ArriFerrari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago #169938 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
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169947 by tpartner
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
  • ArriFerrari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago - 5 years 10 months ago #169963 by tpartner
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: 5 years 10 months ago by tpartner.
The topic has been locked.
  • ArriFerrari
  • ArriFerrari's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169968 by tpartner
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago - 5 years 10 months ago #169988 by DenisChenu
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
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.

Lime-years ahead

Online-surveys for every purse and purpose