Welcome to the LimeSurvey Community Forum

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

Custom JavaScript in Limesurvey 2.05

  • fstahl
  • fstahl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #141004 by fstahl
Custom JavaScript in Limesurvey 2.05 was created by fstahl
Hello Community,

I used in Limesurvey 1.92 a javascript which is now in 2.05 no longer working:

<script type="text/javascript" charset="utf-8">var wtp1='{INSERTANS:614996X593X3188}';var wtp2=150/'{INSERTANS:614996X593X3189}';var wtp3='{INSERTANS:614996X593X3190}'/3; var avg_wtp=(0.66*(wtp1/3 + wtp2/3 + wtp3/3)).toFixed(0); document.write(avg_wtp); </script>

I try altready since hours to fix it, but all potential solutions in the forum are not working.

Thanks for your help!
The topic has been locked.
  • fstahl
  • fstahl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #141027 by fstahl
Replied by fstahl on topic Custom JavaScript in Limesurvey 2.05
I would like to add few more information: The javascript works in the main question text, but in the Answer suffix (en) and also not in the asnwer options of a List (radio).

I tried already to add space after { and before }, but that was not the solution of my problem!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose