Welcome to the LimeSurvey Community Forum

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

Comment box label: how to change it ?

  • jsansonn
  • jsansonn's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago - 5 years 11 months ago #167053 by jsansonn
Comment box label: how to change it ? was created by jsansonn
Hello
Looks like a very simple question, but I cannot find any answer working with limesurvey 3.6.2...

using a "list with comment", I want to change comments label. From "Please enter your comment here:" to "Please explain:"

This solution used to work with my older install (2.X.X) of limesurvey, but not with recent installs:
Code:
<script>
$(function() {
$("#question{QID} .comment label").text("Please explain:");
});
</script>

I also would like to change "no answer" label (used in non mandatory questions) to "No answer / not applicable", it there a way to do it ?

Thanks a lot for your help.
Julien
Last edit: 5 years 11 months ago by jsansonn.
The following user(s) said Thank You: EwenHill
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #167065 by Joffm
Replied by Joffm on topic Comment box label: how to change it ?
Hi,
to answer your first question:
Code:
<script>
$(function() {
$("label[for=answer{SGQ}comment].control-label").text("Please explain:");
});
</script>

and your second question:
1. Set "Show "No answer"" to OFF

2. Add your own "no answer" option



Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 11 months ago by Joffm.
The following user(s) said Thank You: jsansonn
The topic has been locked.
  • jsansonn
  • jsansonn's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #167072 by jsansonn
Replied by jsansonn on topic Comment box label: how to change it ?
Thanks, working great !
The topic has been locked.
More
3 years 9 months ago #200762 by SCHOOLPLATE
Replied by SCHOOLPLATE on topic Comment box label: how to change it ?
Hi Joffm,
can you please tell me where I have to insert the commands for changing the box description like you mentioned above?

<script>
$(function() {
$("label[for=answer{SGQ}comment].control-label").text("Please explain:");
});
</script>

Will this work if I put it in my custom css in the "theme editor?

I work with LimeSurvey Version 3.22.17

Thank you very much!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #200767 by Joffm
Replied by Joffm on topic Comment box label: how to change it ?
Hi,

you see that it is a javascript snippet.
So you cannot insert it into a css-file.

Concerning that you want to display always an adequate text you should insert it into the question text (in source code mode)
as described here
manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey

But you may insert it into your "custom.js" if you want to have all descriptions equal.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: SCHOOLPLATE
The topic has been locked.
More
3 years 9 months ago #200769 by SCHOOLPLATE
Replied by SCHOOLPLATE on topic Comment box label: how to change it ?
Ah alright, thank you very much! :-)

So turning off "Filter HTML for XSS" won't harm the rest of my survey?
I really just want to change this for one question, so the manual description should be the best solution, I guess.

I'm basically a "beginner beginner", so I did not recogize the Java snippet...^^
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose