Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Implementing a responsive Chat in a survey

  • develnick
  • develnick's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago - 5 years 6 months 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: 5 years 6 months ago by develnick.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174882 by holch
Replied by holch on 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 answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: develnick
The topic has been locked.
  • develnick
  • develnick's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #174884 by develnick
Replied by develnick on 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
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174885 by holch
Replied by holch on 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 answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 6 months ago #174918 by LouisGac
Replied by LouisGac on 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174938 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174966 by tpartner
Replied by tpartner on 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose