Check out the LimeSurvey source code on GitHub!

Expression Manager not working in IE

More
4 years 11 months ago #77338 by JHN
I created a question which stores a score calculated using responses to the previous questions. This works just fine with Firefox, but does not work at all with IE8 or IE9. IE appears to have problems pulling in the previous responses. I tried using Expression Managers {XXX} to access the variable as well as {INSERTANS:SIDXGIDXQID}, but neither seem to work. I'm not too familiar with the different ways that Firefox and IE handle javascript. Would anyone be able to point me in the right direction please?

I've been able to successfully do something similar in other surveys when I used 1.91 (and had no problems with IE), but the update to 1.92 (Build 120319) seems to have changed things significantly. Any help would be greatly appreciated!

Please Log in to join the conversation.

More
4 years 11 months ago #77344 by TMSWhite
JHN-

Please open a bug ticket and attach the survey that is causing trouble (plus, if you are using a custom template, please attach that too).
The following user(s) said Thank You: JHN

Please Log in to join the conversation.

More
4 years 11 months ago #77346 by JHN
Just opened a bug ticket. Thank you for your quick response!

Please Log in to join the conversation.

More
4 years 11 months ago #77361 by TMSWhite
Actually, the problem was a bug in the custom JavaScript embedded in the survey, not a bug in 1.92. The survey tried to compute an assessment score using JavaScript. Instead, it should use the new Equation question type like this:

(1) MAScore =
{sum(MA_1, MA_2, MA_3, MA_4, MA_5, MA_6, MA_7, MA_8, MA_9, MA_10)}

(2) iadlScore =
{sum(iadlA == 4, iadlB == 1, iadlC == 1, iadlD != 5, iadlE != 3, iadlF < 4, iadlG == 1, iadlH != 3)}

Please Log in to join the conversation.

More
4 years 11 months ago #77362 by JHN
Thank you, TMSWhite! You resolved my problem in such a timely manner. I was not familiar with all the capabilities of the new equation question type, especially that it had the capability of including logic.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form