Implementing a responsive Chat in a survey

More
8 months 3 weeks ago - 8 months 3 weeks ago #174878 by develnick
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: 8 months 3 weeks ago by develnick.

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

LimeSurvey Partners
More
8 months 3 weeks ago #174882 by holch

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
8 months 3 weeks ago #174884 by develnick
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
8 months 3 weeks ago #174885 by holch
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
8 months 3 weeks ago #174918 by LouisGac

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
8 months 3 weeks ago #174938 by DenisChenu
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 .
An error happen ? Before make a new topic : remind the Debug mode .

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

More
8 months 3 weeks ago #174966 by tpartner
...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.
Official LimeSurvey Partner - partnersurveys.com

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!