- Posts: 31
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
<script> $(document).ready(function() { $("#progressbar").progressbar({ value: 10 }); }); </script>
jelo wrote: You could add a little Javascript to the Questiontext or Grouptext.
Code:<script> $(document).ready(function() { $("#progressbar").progressbar({ value: 10 }); }); </script>
That way the progressbar is set to 10.
I would like to see a way to see an option tab for the progress bar.
Postion: Top / Bottom
Beginning Value: e.g 10%
Ending Value: e.g 80%
Calulation of Value via different algorithms:
a) Position of currently displayed question
b) Questions already seen
Since I update LS often, I try to keep my hand off the php code. But a good alternative. Perhaps a plugin is the way to go.pmonstad wrote: I added "+1" after the step parameter. The file I altered is application/helpers/SurveyRuntimeHelper.php (line 898) in build 141229.
function doProgressBar(step,maxstep){ $(document).ready(function() { $("#progressbar").progressbar({ value: step/maxstep }); }); }