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

TOPIC: List with Comment Text

List with Comment Text 2 months 2 weeks 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 2 months 2 weeks ago #119479

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

List with Comment Text 2 months 2 weeks 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 2 months 2 weeks 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 2 months 2 weeks ago #119494

  • AGK925
  • AGK925's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Thank you received: 1
  • 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

List with Comment Text 2 months 2 weeks ago #119513

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4964
  • Thank you received: 1022
  • Karma: 424
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 months 2 weeks ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: AGK925, Rony

List with Comment Text 3 weeks 4 days ago #121550

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

List with Comment Text 3 weeks 4 days ago #121561

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4964
  • Thank you received: 1022
  • Karma: 424
...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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 3 weeks 4 days ago by tpartner.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.426 seconds