Implementing a responsive Chat in a survey

More
2 weeks 4 days ago - 2 weeks 4 days ago #174878 by develnick
develnick created the topic: Implementing a responsive Chat in a survey
Hello!

I'd like to implement a third-party-Chat in a Survey. Which file do I need to edit in order to write some Javascript code that is every time executed?

I tried to insert javascript code inside the question and it worked. However, I'd like to have it always ON.

I also read this topic about "Zopim Chat" but I couldn't find startpage.pstpl file.

Thanks again for your help. ;)

- Nick
Last Edit: 2 weeks 4 days ago by develnick.

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

More
2 weeks 4 days ago #174882 by holch
holch replied the topic: Implementing a responsive Chat in a survey

I also read this topic about "Zopim Chat" but I couldn't find startpage.pstpl file.


Because this thread you are referring to is from 2 years ago. This was for sure a totally different version. The template system has changed probably twice since then.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: develnick

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

More
2 weeks 4 days ago #174884 by develnick
develnick replied the topic: Implementing a responsive Chat in a survey
Thanks! So do you know how to insert a JavaScript file that is executed everytime? For example is there a way to put is in the header so it's always executed?

- Nick

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

More
2 weeks 4 days ago #174885 by holch
holch replied the topic: Implementing a responsive Chat in a survey
For Javascript related questions you have to wait for someone like Tpartner or Denis to help with details.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
2 weeks 3 days ago #174918 by LouisGac
LouisGac replied the topic: Implementing a responsive Chat in a survey

develnick wrote: Thanks! So do you know how to insert a JavaScript file that is executed everytime? For example is there a way to put is in the header so it's always executed?


extend a theme, edit its config.xml, add your JS file after the other files, reset the theme :

github.com/LimeSurvey/LimeSurvey/blob/ma...a/config.xml#L55-L59

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

More
2 weeks 3 days ago #174938 by DenisChenu
DenisChenu replied the topic: Implementing a responsive Chat in a survey
Or add script in footer.twig for example : github.com/LimeSurvey/LimeSurvey/blob/ma...s/footer/footer.twig

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 .

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

More
2 weeks 2 days ago #174966 by tpartner
tpartner replied the topic: Implementing a responsive Chat in a survey
...or extend a core theme and edit custom.js.

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.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!