List with Comment Text

More
4 years 2 months ago #93122 by Nem3s1S
Nem3s1S created the topic: List with Comment Text
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:

Please Log in to join the conversation.

More
4 years 2 months ago #93123 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 2 months ago #93126 by Nem3s1S
Nem3s1S replied the 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

Please Log in to join the conversation.

More
4 years 2 months ago #93130 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 2 months ago #93218 by tpartner
tpartner replied the 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:
$(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

Please Log in to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #112971 by AGK925
AGK925 replied the 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: 2 years 7 months ago by AGK925.

Please Log in to join the conversation.

More
2 years 1 month ago #119474 by Rony
Rony replied the topic: List with Comment Text
If I want to change each one of those labels, do you know if there is any way?

Please Log in to join the conversation.

More
2 years 1 month ago #119475 by AGK925
AGK925 replied the 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?

Please Log in to join the conversation.

More
2 years 1 month ago #119476 by Rony
Rony replied the topic: List with Comment Text
Sorry AGK 925, I thought it would be appropriate here

Please Log in to join the conversation.

More
2 years 1 month ago #119477 by AGK925
AGK925 replied the 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?

Please Log in to join the conversation.

More
2 years 1 month ago #119478 by Rony
Rony replied the topic: List with Comment Text
ok. No, I'm asking for this type of question even

Please Log in to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #119479 by AGK925
AGK925 replied the 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
<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: 2 years 1 month ago by AGK925. Reason: edit code

Please Log in to join the conversation.

More
2 years 1 month ago #119480 by Rony
Rony replied the topic: List with Comment Text
Nice,AGK925
I'll try
Thank you!

Please Log in to join the conversation.

More
2 years 1 month ago #119493 by Rony
Rony replied the topic: List with Comment Text
It works perfectly. Thank you again!

Please Log in to join the conversation.

More
2 years 1 month ago #119494 by AGK925
AGK925 replied the topic: List with Comment Text
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 following user(s) said Thank You: Rony

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now