Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : progress bar according to number of questions?

progress bar according to number of questions? il y a 1 an 4 mois #95120

  • Malte
  • Portrait de Malte
  • Hors ligne
  • Fresh Lemon
  • Messages : 10
  • Karma: 0
Hi there,

I was wondering, whether there is any chance of linking the progress bar to the number of questions instead of having it linked to the number of groups. Unfortunately we cannot distribute the total number of questions roughly equally among the number of groups and thus have some groups in the beginning of our questionnaire that are rather large.

We are using: Version 2.00+ Build 130226

Cheers,
Malte
L'administrateur a désactivé l'accès en écriture pour le public.

progress bar according to number of questions? il y a 1 an 4 mois #95139

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4127
  • Remerciements reçus 761
  • Karma: 347
Only if you put the survey in question-by-question mode. The progress bar is tied to the number of "steps" which, when in group-by-group mode, are groups.
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.
L'administrateur a désactivé l'accès en écriture pour le public.

progress bar according to number of questions? il y a 1 an 4 mois #95142

  • Malte
  • Portrait de Malte
  • Hors ligne
  • Fresh Lemon
  • Messages : 10
  • Karma: 0
I am afraid , with around 350 questions, this is not an option. :(
L'administrateur a désactivé l'accès en écriture pour le public.

progress bar according to number of questions? il y a 1 an 4 mois #95143

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4127
  • Remerciements reçus 761
  • Karma: 347
In that case, you can force the progress bar value for each group with JavaScript.

1) Set up your survey to use JavaScript.

2) Add something like this to the to the source of the group description. Replace 44 with your value for that group.
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		setTimeout(function() {	
			$('.ui-progressbar-value').css({
				'width':'44%'
			});					
		}, 100);
	});
</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.
L'administrateur a désactivé l'accès en écriture pour le public.

progress bar according to number of questions? il y a 1 an 4 mois #95150

  • Malte
  • Portrait de Malte
  • Hors ligne
  • Fresh Lemon
  • Messages : 10
  • Karma: 0
Thanks, we will try to give that solution a go.

Cheers,
Malte
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.130 secondes
Donation Image