Welcome to the LimeSurvey Community Forum

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

unable to use javascript and progress-bar in one survey (other survey works).

  • Siem
  • Siem's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 4 months ago #160045 by Siem
My survey has javascript added to the source of the questions. However this is not executing.
Previously I set "Filter HTML for XSS" to "Off" in the Global settings.
Another survey also has javascript in the question-source and it works perfectly.

However in the particular survey nothing happens, even the test example doesn't do anything.
Code:
<script type="text/javascript" charset="utf-8">
   alert("Test!");
</script>

One thing that is strange and perhaps related is that in this particular survey the progress-bar is missing (even though I enabled it). I think this might be related.

Any idea what I can do to make the javascript (and progress-bar) work?

Many thanks in advance!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160047 by tpartner
That indicates a fatal JavaScript error. Check the console for errors.

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