Potential JavaScript breaks with EM expressions

More
4 years 11 months ago - 4 years 11 months ago #89070 by jun9
jun9 created the topic: Potential JavaScript breaks with EM expressions
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 11 months ago by jun9.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!