Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Bilder links und rechts vom Schieberegler

  • Kurier
  • Kurier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #137990 by Kurier
Hallo,

ich bin auf der Suche nach einer Möglichkeit, wie ich links und rechts von einem Schieberegler Bilder einfügen kann. Um genauer zu sein möchte ich z.B. auf die Frage "Wie gefällt ihnen xy?" eine Skala von 0-10 einrichten, bei der links ein trauriger Smiley ist und rechts ein fröhlicher Smiley.

Ich habe es hinbekommen links einen anzeigen zu lassen, indem ich unter "edit subquestions" <img src="/limesurvey/upload/surveys/xyz.jpg"/> hinzugefügt habe. Jedoch kriege ich den auf der rechten Seite nicht hin; probiert habe ich es mit "alignment="right".

Gibt es da eine einfache Möglichkeit auf die ich nicht komme?

Vielen Dank im Vorraus
The topic has been locked.
More
7 years 8 months ago #137996 by steve_81
Replied by steve_81 on topic Bilder links und rechts vom Schieberegler
Hallo und herzlich willkommen,

unter 2.50plus: bei der Bearbeitung der der Frage unter Slider-Parameter sollte der Punkt "Slider left/right text separator: " sein, der Wert darin ein vertikaler Strich (|).
Bei edit subquestions sollte dann das funktionieren:
Code:
<img src="/limesurvey/upload/surveys/xyz.jpg"/> | <img src="/limesurvey/upload/surveys/abc.jpg"/>

Ich habe es gerade versucht, das default template scheint es aber nicht hinzubekommen, das zweite Bild rechts des Schiebereglers darzustellen.
Ist das bei Dir auch so? Dann bug-report.

VG
Stefan
The topic has been locked.
  • Kurier
  • Kurier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #137998 by Kurier
Replied by Kurier on topic Bilder links und rechts vom Schieberegler
Hallo Steve,

vielen Dank erstmal für deine schnelle Antwort, bei mir funktioniert es leider auch nicht. Das Bild wird immer noch links vom Schieberegler angezeigt.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138000 by tpartner
Replied by tpartner on topic Bilder links und rechts vom Schieberegler
English please in this forum so all can benefit from solutions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Kurier
  • Kurier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #138005 by Kurier
Replied by Kurier on topic Bilder links und rechts vom Schieberegler
Hello Tony,

I have a "Multiple numerical input" question type, which I want to realize with a slider. Now i want to add pictures on the left and on the right side of it. For example the question is like "how do you like xy?" on a scale from 0-10 and I like to add a sad face on the left side and a happy face on the right side of the slider.

I managed to add images on the left side of it by adding <img src="/limesurvey/upload/surveys/xyz.jpg"/> into the sub-question, but even with the 'alignment="right"'it won't move to the right side of the slider.

I hope the image will help you to understand what I want.

Thank you very much in advance for your answer.
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138030 by tpartner
Replied by tpartner on topic Bilder links und rechts vom Schieberegler
What version of LimeSurvey are you using?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Kurier
  • Kurier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #138032 by Kurier
Replied by Kurier on topic Bilder links und rechts vom Schieberegler
I'm using Version 2.06+ Build 160129.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138035 by tpartner
Replied by tpartner on topic Bilder links und rechts vom Schieberegler
You can, as Stefan suggests, use the Slider left/right text separator and insert the image tags with the sub-question labels...

1) Define the slider left/right text separator as a pipe character ( | ).


2) Insert your sub-question labels, separating the sub-question label text and left/right labels with pipe characters. (in this example, I have placed my images in the template directory)


Ta-da!

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: steve_81, Kurier
The topic has been locked.
More
7 years 8 months ago #138038 by steve_81
Replied by steve_81 on topic Bilder links und rechts vom Schieberegler
My common mistake is to think there are only two sides. Actually there are three positions in each subquestion separated by |

So the subquestion looks like:
Question | pic1 | pic2

I tried this out and it works in 2.06 and 2.50
The topic has been locked.
  • Kurier
  • Kurier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #138045 by Kurier
Replied by Kurier on topic Bilder links und rechts vom Schieberegler
Thanks a lot. It works like a charm. :)

@steve Yeah I didn't think of puttting a pipe after the question either.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose