Welcome to the LimeSurvey Community Forum

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

javascript code in answers ?

  • Przemo255
  • Przemo255's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #210661 by Przemo255
javascript code in answers ? was created by Przemo255
Is it possible to be able to add javascript code to the dropdown list in response so that the javascript text appears in the output? example code:
<p id = "p1"> </p>
<script> document.getElementById ("p1"). innerHTML = "text!"; </script>
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #210698 by holch
Replied by holch on topic javascript code in answers ?
Did you try it?

Not sure, would have to test it too. What you WILL need to do is switch the XSS filter off.

But what are you trying to do? Somehow I have the impression that you might be able to use expression manager for this.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 5 months ago #210703 by DenisChenu
Replied by DenisChenu on topic javascript code in answers ?
No : option allow only text, no HTML

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose