Hi,
I am very happy with limesurvey at the moment. There is just one thing that bothers me:
Within the completed.pstpl I need the values of all the preceding questions. So, a small part of my code looks like this:
Code:
<script type="text/javascript">
var myAnswers = {
answer1: {sd1q1.code},
answer2: {sd1q2.code},
answer3: {sd1q2.code},
}
<script>
If I debug myAnswers they are properly filled. But: Since every survey is different, I have to copy the template for each instance (and I'd like to have only one).
My Idea: execute the code as myjs.js file like this:
Code:
<script type="text/javascript" src="scripts/own/myjs.js"></script>
But: If I do it this way, the EM does not resolve the variables "{sd1q1.code}". Its just exactly this string that is executed.
Is there a known solution for this? Before you ask: The last page is supposed to show some diagrams that are depending on the answers and the chosen survey. If I had those answer values in my external js file, I could do everything with jquery and could use only one template.
ty!
E: btw: Is the german speaking board more active? I could post there too, but I guess thats not appreciated.