Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.24+211108
Own server or LimeSurvey hosting: Own server
Survey theme/template: Vanilla (extended)
==================
Hey there!
I'm trying to add a javascript file to the source code of a question. Leaving the script as a whole in the question's source code works, but by uploading it to for example the theme's files and referencing renders it not working. What am I doing wrong? Referencing the LS logo for instance works.
Thats how I reference the working image in the theme folder:
Code:
<img src="./themes/survey/vanilla/files/logo.png" />
Thats how I reference the .js file, uploaded to the theme folder as well:
Code:
<script type="text/javascript" src="./themes/survey/vanilla/files/custom_table.js"></script>
The .js file contains some javascript and jquery code to add datepickers and radiobuttons to a "vanilla" text input array. Without sourcing it out, it is working fine.
Thanks to anyone taking the time to answer my question! I look a lot into this forum and some times the answers were really helpful