Welcome to the LimeSurvey Community Forum

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

Comment box label: how to change it ?

More
7 years 5 months ago - 7 years 5 months ago #167053 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: 7 years 5 months ago by jsansonn.
The following user(s) said Thank You: EwenHill
The topic has been locked.
More
7 years 5 months ago - 7 years 5 months ago #167065 by Joffm
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: 7 years 5 months ago by Joffm.
The following user(s) said Thank You: jsansonn
The topic has been locked.
More
7 years 5 months ago #167072 by jsansonn
Thanks, working great !
The topic has been locked.
More
5 years 3 months ago #200762 by SCHOOLPLATE
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.
More
5 years 3 months ago #200767 by Joffm
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
www.limesurvey.org/manual/Workarounds:_M...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
5 years 3 months ago #200769 by SCHOOLPLATE
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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose