Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Potential JavaScript breaks with EM expressions

Potential JavaScript breaks with EM expressions 4 years 1 week ago #89070

  • jun9
  • jun9's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 0
EM is Great and I love the flexibility it brings to LimeSurvey.
I just don't know if the {} EM expressions works well along with the old custom javascript tricks.
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
vv={}; //this will break, because {} is replaced to an empty <span>
vv_R={Rscore}; //this works, {Rscore} is replaced to a equation-calculated EM value

I tried to use vv={ } (adding more spaces)to work around this ?bug, but not sure what other conflicts are still out there.

BTW. Is there a way that EM could be used to change another radio list question's assessment value, it seems all {Qcode.value} can do is getting values, not setting, right?
Last Edit: 4 years 1 week ago by jun9.
The administrator has disabled public write access.
Time to create page: 0.181 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form