Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: List with Comment Text

List with Comment Text 3 years 3 months ago #93122

  • Nem3s1S
  • Nem3s1S's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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
The administrator has disabled public write access.

List with Comment Text 3 years 3 months ago #93123

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4890
  • Thank you received: 718
  • Karma: 217
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

List with Comment Text 3 years 3 months ago #93126

  • Nem3s1S
  • Nem3s1S's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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 administrator has disabled public write access.

List with Comment Text 3 years 3 months ago #93130

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4890
  • Thank you received: 718
  • Karma: 217
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".
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

List with Comment Text 3 years 2 months ago #93218

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
If you want to change that label for all list-with-comment questions, add this to the end of template.js:
$(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 administrator has disabled public write access.
The following user(s) said Thank You: Rony

List with Comment Text 1 year 7 months ago #112971

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 2
  • Karma: 0
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: 1 year 7 months ago by AGK925.
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119474

  • Rony
  • Rony's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
If I want to change each one of those labels, do you know if there is any way?
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119475

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 2
  • Karma: 0
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 administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119476

  • Rony
  • Rony's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
Sorry AGK 925, I thought it would be appropriate here
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119477

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 2
  • Karma: 0
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 administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119478

  • Rony
  • Rony's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
ok. No, I'm asking for this type of question even
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119479

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 2
  • Karma: 0
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
<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: 1 year 1 month ago by AGK925. Reason: edit code
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119480

  • Rony
  • Rony's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
Nice,AGK925
I'll try
Thank you!
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119493

  • Rony
  • Rony's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 13
  • Karma: 0
It works perfectly. Thank you again!
The administrator has disabled public write access.

List with Comment Text 1 year 1 month ago #119494

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 2
  • Karma: 0
Glad it worked. I am running an older version and I have not tried to use the code on multiple questions so I wasn't positive it would work for you.
The administrator has disabled public write access.
The following user(s) said Thank You: Rony
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.245 seconds