Welcome to the LimeSurvey Community Forum

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

List with Comment Text

  • Nem3s1S
  • Nem3s1S's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 weeks ago #93122 by Nem3s1S
List with Comment Text was created by Nem3s1S
Looking to where I can change the text for a "List with Comment" question type. The text I want to change is the "Please enter your comment here" of this question type and even perhaps the size of the box. I've looked through the template and CSS files and cannot locate where this is. I have previously searched forums and other place online and have come up with nothing. Can anyone help? I've added an attachment of the question type for visual inspection.

Limesurvey version 1.92+ Build 120501

Thanks,

Nem3s1S
Attachments:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93123 by holch
Replied by holch on topic List with Comment Text
The size can definitely be changed via the template css. You'll need to search for the id of this textbox and you can directly use CSS on it (if only this box should be changed, otherwise you'll need to go for the class).

The text should be part of the translation files.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Nem3s1S
  • Nem3s1S's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 weeks ago #93126 by Nem3s1S
Replied by Nem3s1S on topic List with Comment Text
Thanks for the fast reply. I have adjusted height in the CSS. I have located where you can edit the text. I originally tried editing the translation file "en.po"; however, that did not accept the change. Found out that you need to edit qanada.php file. Only issues is this is a Global file. Is there a way i can make a copy of this qanda.php file, rename it to let's say qanada2.php and have my particular survey call that instead? Reason I ask is we run multiple surveys and my fear is that I will soon forget this change I made.

Nem
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93130 by holch
Replied by holch on topic List with Comment Text
If this is not part of the PO file (which I just can't believe) there is not much you can do. Did you create a different language and applied this to your survey? Maybe this works. Type "MyVerySpecialEnglish".

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 weeks ago #93218 by tpartner
Replied by tpartner on topic List with Comment Text
If you want to change that label for all list-with-comment questions, add this to the end of template.js:
Code:
$(document).ready(function(){
  $('.list-with-comment p.comment label').text('Your new label text here!');
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Rony
The topic has been locked.
More
9 years 5 months ago - 9 years 5 months ago #112971 by AGK925
Replied by AGK925 on topic List with Comment Text
Is this method still relevant? I have tried the code and it does not appear to work for me, but perhaps I am doing something wrong. Thank you

Edit: I figured it out, this code can now be placed directly within the source code of the question.
Last edit: 9 years 5 months ago by AGK925.
The topic has been locked.
More
8 years 10 months ago #119474 by Rony
Replied by Rony on topic List with Comment Text
If I want to change each one of those labels, do you know if there is any way?
The topic has been locked.
More
8 years 10 months ago #119475 by AGK925
Replied by AGK925 on topic List with Comment Text

Rony wrote: If I want to change each one of those labels, do you know if there is any way?


The original post is in reference to a list with comments question type; this question type only has one comments box. Would you perhaps be asking about changing the label of the comments box in another question type?
The topic has been locked.
More
8 years 10 months ago #119476 by Rony
Replied by Rony on topic List with Comment Text
Sorry AGK 925, I thought it would be appropriate here
The topic has been locked.
More
8 years 10 months ago #119477 by AGK925
Replied by AGK925 on topic List with Comment Text
No need to be sorry I just wanted to make sure I understood your question. For what question type do you want to change the comment label?
The topic has been locked.
More
8 years 10 months ago #119478 by Rony
Replied by Rony on topic List with Comment Text
ok. No, I'm asking for this type of question even
The topic has been locked.
More
8 years 10 months ago - 8 years 10 months ago #119479 by AGK925
Replied by AGK925 on topic List with Comment Text
OK, for the question you want to change the comment box label, in the box where you type the question text there is a button called source. When that is selected you can see the source code for the question. Here you will type
Code:
<script type="text/javascript" charset="utf-8">  
$(document).ready(function(){
 
 $('.list-with-comment p.comment label').text('TEXT FOR COMMENT BOX:');
 
});
</script>

Below the code for the question text.
Last edit: 8 years 10 months ago by AGK925. Reason: edit code
The following user(s) said Thank You: vinz3g
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose