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

SUJET : Dynamic Images based on Assessment

Dynamic Images based on Assessment il y a 1 an 6 mois #94182

  • g3guy
  • Portrait de g3guy
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
Hi

I've been working on utilising a combo of the Expression Manager and the assessment page for a results page.

Thanks to TMSWhite's suggestion, I customised the assessment template over here

The next thing is to improve on the look and rather than having a score, I would have a traffic light effect (so 1-2 = Red, 3 = Amber, 4-5 = Green for instance).

I've been Googling around, but have not hit on the right key words clearly - can you please point me in the right direction?

Thanks!
L'administrateur a désactivé l'accès en écriture pour le public.

Dynamic Images based on Assessment il y a 1 an 6 mois #94184

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4272
  • Remerciements reçus 806
  • Karma: 369
If you are using the solution in the linked post, it seems to me that it is simply a matter of replacing the text in the conditional text-display questions with images.

sweden-eqns.jpg
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.

Dynamic Images based on Assessment il y a 1 an 6 mois #94191

  • g3guy
  • Portrait de g3guy
  • Hors ligne
  • Fresh Lemon
  • Messages : 14
  • Karma: 0
Thanks! Although my example didn't quite follow on from the link (I should have been more detailed in my posting) it did stir on the right thinking.

I ended up with something like this in my coding (assessment template)
<tr>
	<td class="assessment-module">1. Authentic Consulting</td>
	<td class="assessment-row">
		{if((sum(x_1_0,x_2_0,x_3_0,x_4_0,x_5_0))/5 <= 2.5,'<img src="{TEMPLATEURL}1.png"/>',
		if((sum(x_1_0,x_2_0,x_3_0,x_4_0,x_5_0))/5 <= 3.5,'<img src="{TEMPLATEURL}2.png"/>',
		'<img src="{TEMPLATEURL}3.png"/>'))}
	</td>
	<td class="assessment-row">
		{if((sum(x_1_1,x_2_1,x_3_1,x_4_1,x_5_1))/5 <= 2.5,'<img src="{TEMPLATEURL}1.png"/>',
		if((sum(x_1_1,x_2_1,x_3_1,x_4_1,x_5_1))/5 <= 3.5,'<img src="{TEMPLATEURL}2.png"/>',
		'<img src="{TEMPLATEURL}3.png"/>'))}
	</td>
</tr>

Thanks again! :)
L'administrateur a désactivé l'accès en écriture pour le public.

Dynamic Images based on Assessment il y a 1 an 6 mois #94193

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4272
  • Remerciements reçus 806
  • Karma: 369
Nice solution. Thanks for providing the example for other users.
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.
Cet utilisateur a été remercié pour son message par: g3guy
Modérateurs: ITEd
Temps de génération de la page : 0.124 secondes
Donation Image