Check out the LimeSurvey source code on GitHub!

List with Comment Text

More
1 year 9 months ago - 1 year 9 months ago #119513 by tpartner
To ensure that the script only affects the question it is loaded in and not other questions on the same page, you could use this:

<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {
		$('#question{QID} p.comment label').text('TEXT FOR COMMENT BOX:');
	});		
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 year 9 months ago by tpartner.
The following user(s) said Thank You: AGK925, Rony

Please Log in to join the conversation.

More
1 year 8 months ago #121550 by LMO
Thanks, I used the code and when looking at the question with "preview this question" it works fine, but at the actual survey it doesn't work anymore and the customized text is gone.

Hopefully there is a workaround, because I do not want to change te text for all the list questions with comments.

Please Log in to join the conversation.

More
1 year 8 months ago - 1 year 8 months ago #121561 by tpartner

...but at the actual survey it doesn't work anymore and the customized text is gone.

Do you have any javaScript errors in the console? Can you activate a small test survey for us to see?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 year 8 months ago by tpartner.

Please Log in to join the conversation.

More
10 months 5 days ago - 10 months 5 days ago #134673 by zahorks
I have the same problem and have just tried using the code posted previously (copied below) with no luck. Any suggestions as to why this is not working for me?
<script type="text/javascript" charset="utf-8">	
$(document).ready(function(){
 
 $('.list-with-comment p.comment label').text('TEXT FOR COMMENT BOX:');
 
});
</script>
Last Edit: 10 months 5 days ago by zahorks.

Please Log in to join the conversation.

More
10 months 5 days ago #134679 by tpartner
It works for me in 2.06 and 2.5. Do you have any JavaScript errors?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
10 months 5 days ago #134681 by zahorks
I'm honestly not sure. I'm not a developer.

Please Log in to join the conversation.

More
10 months 4 days ago #134691 by DenisChenu
@zahorks : activate your javascript console to see error.
- developers.google.com/web/tools/chrome-d...g/console/console-ui
- developer.mozilla.org/en-US/docs/Mozilla...Debugging_JavaScript
- msdn.microsoft.com/en-us/library/hh696634.aspx

@tparner : maybe we have to add a "debugging javascript" somewhere in manual and ask to Carsten to link "javascript console" keywork to the page ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form