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

TOPIC: List with Comment Text

List with Comment Text 1 month 2 days 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 month 2 days ago #119479

  • AGK925
  • AGK925's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • 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: 1 month 2 days ago by AGK925. Reason: edit code
The administrator has disabled public write access.

List with Comment Text 1 month 2 days 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 month 2 days 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 month 2 days ago #119494

  • AGK925
  • AGK925's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • 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 1 month 1 day ago #119513

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4843
  • Thank you received: 987
  • Karma: 417
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: 1 month 1 day ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: AGK925, Rony
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.153 seconds
Donation Image