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

TOPIC: progress bar at the end of survey

progress bar at the end of survey 5 years 5 months ago #59465

  • darksigns
  • darksigns's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi,
I use Version 1.90+ Build 9642 and would like to show a 100% progressbar at the end of a survey above the thank you text. I tried to copy
<tr>
<td class="graph">{PERCENTCOMPLETE}
</td>
</tr>

into completed.pstpl but it doesn't show the bar at that page.than I tried simply copy the fuction there :
<script type="text/javascript">
$(function() {
$("#progressbar").progressbar({
value: 0
});
});
</script>

but it doesn't work
Can somebody give me a way to show it?
thx
Last Edit: 5 years 5 months ago by darksigns.
The administrator has disabled public write access.

progress bar at the end of survey 5 years 5 months ago #59479

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6305
  • Thank you received: 1407
  • Karma: 546
The {PERCENTCOMPLETE} placeholder is not available in the end page. Try pasting in the complete HTML for the progress bar:
<td class="graph">
 
	<div id="progress-wrapper">
		<div id="progress-pre">0%</div>
		<div id="progressbar" class="ui-progressbar ui-widget ui-widget-content ui-corner-all" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="33">
			<div class="ui-progressbar-value ui-widget-header ui-corner-left" style="width: 100%;"></div>
		</div>
		<div id="progress-post">100%</div>
	</div>
 
</td>
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: darksigns

progress bar at the end of survey 5 years 5 months ago #59480

  • darksigns
  • darksigns's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
THANK YOU !!

IT WORKS GREAT!!
:woohoo:
The administrator has disabled public write access.

progress bar at the end of survey 5 years 5 months ago #59966

  • shahzero
  • shahzero's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Helo.

May I know which file I need to replace?
The administrator has disabled public write access.

progress bar at the end of survey 5 years 5 months ago #59969

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6305
  • Thank you received: 1407
  • Karma: 546
May I know which file I need to replace?
See the documentation - docs.limesurvey.org/The+template+editor&...urvey#Template_Files
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.

progress bar at the end of survey 5 years 5 months ago #59981

  • shahzero
  • shahzero's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Thank you. Its work :laugh:
The administrator has disabled public write access.
Time to create page: 0.714 seconds
Imprint                   Privacy policy                  Revocation information and revocation form