Is it possible to insert a php file or html file into the End Message? Thanks

More
1 month 1 week ago #200321 by mrli999
Is it possible to insert a php file or html file into the End Message? Thanks

For example, I have a php file or html file names example.php. Is it possible to insert example.php into End Message using filename?

Thanks for your help.

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago #200323 by Joffm
What are you trying to do?

Do you want to link to that file?

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
1 month 1 week ago #200324 by mrli999
I want to display the content of that file.


I hope to add header and footer to the End message. Then all of my surveys can show the same header and footer.

Please Log in to join the conversation.

More
1 month 1 week ago #200325 by tpartner
jQuery load() - api.jquery.com/load/

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
1 month 1 week ago #200328 by mrli999
Thank you very much for your help.

The default folder of End Message is? Which folder should I put the header.php and footer.php to? If I put those files in the root director of the web site or the limesurvey root directory, how to load them in the End message? Thanks.

Please Log in to join the conversation.

More
1 month 1 week ago #200330 by tpartner
Why import files. Why not make these changes directly in the theme files?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
1 month 1 week ago #200338 by mrli999

tpartner wrote: Why import files. Why not make these changes directly in the theme files?


Thank you.

How to change the theme files for End Message only? I am using limesurvey 2.70. Thanks.

Please Log in to join the conversation.

More
1 month 1 week ago #200341 by Joffm
Hi,
in template editor
"Completed page"


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #200365 by DenisChenu
There are way to add easily constructed HTML via PHP in end message : see github.com/LimeSurvey/LimeSurvey/blob/ma...nse/ShowResponse.php for sample

For adding an dynamic element on footer : ajax (but need js activated) , maybe can add twig function something like {{ getMyPluginFunction() }} ?

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: 1 month 1 week ago by DenisChenu. Reason: {{ getMyPluginFunction() }} twig idea

Please Log in to join the conversation.

More
1 month 1 week ago #200366 by tpartner

For adding an dynamic element on footer : ajax (but need js activated) , maybe can add twig function something like {{ getMyPluginFunction() }} ?

mrli999 is using 2.x so the twig functions are not available, but yes, in 4.x they work well. I have tested using them to replace AJAX calls.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 month 1 week ago #200367 by DenisChenu
And we have a manual page : manual.limesurvey.org/Theme:Available_fu...on#Adding_a_function

Maybe need a "own" function sample ?

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.

Please Log in to join the conversation.

More
1 month 1 week ago #200368 by tpartner
Sorry, I'm referring to Twig Extensions - github.com/LimeSurvey/LimeSurvey/tree/ma...load/twig/extensions

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 month 1 week ago #200369 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.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now