Javascript code disappears

More
3 years 2 months ago #113329 by RBak
RBak created the topic: Javascript code disappears
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

Please Log in to join the conversation.

More
3 years 2 months ago #113333 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 1 month ago #113445 by Loktar
Loktar replied the 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 :)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!