List with Comment Text

Mehr
4 Jahre 8 Monate her #93122 von Nem3s1S
Nem3s1S erstellte das Thema 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
Anhang:

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 8 Monate her #93123 von holch
holch antwortete auf das Thema: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 8 Monate her #93126 von Nem3s1S
Nem3s1S antwortete auf das Thema: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 8 Monate her #93130 von holch
holch antwortete auf das Thema: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 8 Monate her #93218 von tpartner
tpartner antwortete auf das Thema: 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.
Folgende Benutzer bedankten sich: Rony

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
3 Jahre 1 Monat her - 3 Jahre 1 Monat her #112971 von AGK925
AGK925 antwortete auf das Thema: 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.
Letzte Änderung: 3 Jahre 1 Monat her von AGK925.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119474 von Rony
Rony antwortete auf das Thema: List with Comment Text
If I want to change each one of those labels, do you know if there is any way?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119475 von AGK925
AGK925 antwortete auf das Thema: List with Comment Text

Rony schrieb: 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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119476 von Rony
Rony antwortete auf das Thema: List with Comment Text
Sorry AGK 925, I thought it would be appropriate here

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119477 von AGK925
AGK925 antwortete auf das Thema: 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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119478 von Rony
Rony antwortete auf das Thema: List with Comment Text
ok. No, I'm asking for this type of question even

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her - 2 Jahre 6 Monate her #119479 von AGK925
AGK925 antwortete auf das Thema: 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.
Letzte Änderung: 2 Jahre 6 Monate her von AGK925. Begründung: edit code

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119480 von Rony
Rony antwortete auf das Thema: List with Comment Text
Nice,AGK925
I'll try
Thank you!

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119493 von Rony
Rony antwortete auf das Thema: List with Comment Text
It works perfectly. Thank you again!

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 6 Monate her #119494 von AGK925
AGK925 antwortete auf das Thema: 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.
Folgende Benutzer bedankten sich: Rony

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha