Welcome to the LimeSurvey Community Forum

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

Change comment field in list with comments

  • legoland
  • legoland's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago - 2 years 6 months ago #220210 by legoland
I have a problem with changing the text in the comment field of list with comments:

If I put this text in: 
<span style="font-size:20px;"><span lang="de-ch" xml:lang="de-ch"><span style="font-family:Calibri, sans-serif;">Im Hinblick auf meine Geburt erwarte ich, <strong>dass mich die Hebammen einfühlsam behandeln werden.</strong></span></span></span>

<script type="text/javascript" charset="utf-8">

$(document).on('ready pjax:scriptcomplete',function(){
$('#question{QID} .text-item label.control-label').text('Platz für mögliche Kommentare zu dieser Frage (optional)');
});
</script> 

Then I save the script by pressing the "save" button I end up having this text: <span style="font-size:20px;"><span lang="de-ch" xml:lang="de-ch"><span style="font-family:Calibri, sans-serif;">Im Hinblick auf meine Geburt erwarte ich, <strong>dass mich die Hebammen einfühlsam behandeln werden.</strong></span></span></span> {QID} .text-item label.control-label').text('Platz für mögliche Kommentare zu dieser Frage (optional)'); }); 

Which is however not changing the text above the comment field. It deletes just half of my coding (namly that: <script type="text/javascript" charset="utf-8">$(document).on('ready pjax:scriptcomplete',function(){$('#question)
and adds this text after my question when I remove the source button:
 {QID} .text-item label.control-label').text('Platz für mögliche Kommentare zu dieser Frage (optional)'); }); 

What do I do wrong! Would you have any suggestions?
Thank you!!!
Last edit: 2 years 6 months ago by legoland.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #220215 by DenisChenu
Replied by DenisChenu on topic Change comment field in list with comments
manual.limesurvey.org/Optional_settings#Security

filterxsshtml is ON.
(and you can not disable it)
You have to contact your administrator

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • legoland
  • legoland's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #220244 by legoland
Replied by legoland on topic Change comment field in list with comments
Perfect!
As soon as I became superadministrator it worked nicely!
Thank you very much!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose