Welcome to the LimeSurvey Community Forum

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

Javascript code disappears

More
9 years 5 months ago #113329 by RBak
Javascript code disappears was created by RBak
I've got a question inb LimeSurvey where I need to execute some javascript code. The code itself works fine. But when I edit the question in the non-code mode, the code disappears. Is this normal? And if so, can it be turned off?

I work with Version 2.00+ Build 131206

Thanks in advance
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #113333 by holch
Replied by holch on topic Javascript code disappears
What do you mean with "when I edit the question in the non-code mode"?

Did you switch off the XSS filter in the Limesurvey administration?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
9 years 5 months ago #113445 by Loktar
Replied by Loktar on topic Javascript code disappears
It is absolutely normal.

The "code" view is here to show you everything HTML/JAVASCRIPT related. ANd the normal view is the result of all this.

So if you have <p>"hello" </p> in the code view, in the normal view you'll get "hello".

As for javascript, the code is not made to be shown on screen, but to execute itself. So it is normal not to see it on the normal view. Don't worry, it's here :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose