Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Bold current question or add a check mark when answered

Bold current question or add a check mark when answered 2 years 4 months ago #105892

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6131
  • Thank you received: 1360
  • Karma: 535
Export the complete template and attache the zip file.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 4 months ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: katgatita

Bold current question or add a check mark when answered 2 years 4 months ago #105894

  • katgatita
  • katgatita's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Hi Tony,

Please see attached. Thank you!

Kat
Attachments:
The administrator has disabled public write access.

Bold current question or add a check mark when answered 2 years 4 months ago #105895

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6131
  • Thank you received: 1360
  • Karma: 535
Add this to the end of template.js:

	$(document).ready(function() { 
 
		$('.ranking.dragDropRanking .ui-sortable').sortable('option', 'stop', function(event, ui) {
			var qID = $(this).closest('.ranking.dragDropRanking').attr('id').split('question')[1];
			$('#sortable-choice-'+qID+'').sortable('refresh');
			$('#sortable-rank-'+qID+'').sortable('refresh');
			updateDragDropRank(qID);
			if($('#sortable-rank-'+qID+' li.choice').length > 0) {
				markAnswered($('#question'+qID));
			}
			else {
				markUnanswered($('#question'+qID));
			}
		});
	});

Here is your template back with that change incorporated and renamed to "PREP_Bold_2.0_TP":

File Attachment:

File Name: PREP_Bold_2.0_TP.zip
File Size:118 KB
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: katgatita

Bold current question or add a check mark when answered 2 years 4 months ago #105897

  • katgatita
  • katgatita's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Hi Tony!

It is perfect! Thank you so much for your help! You rock!

Kat :laugh:
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.257 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form