- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Bilder links und rechts vom Schieberegler
- Kurier
- Topic Author
- Offline
- New Member
Less
More
7 years 9 months ago #137990
by Kurier
Bilder links und rechts vom Schieberegler was created 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
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.
- steve_81
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 37
7 years 9 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:
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
7 years 9 months ago #138000
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
7 years 9 months ago #138030
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
7 years 9 months ago #138035
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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!
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.
Attachments:
The following user(s) said Thank You: steve_81, Kurier
The topic has been locked.
- steve_81
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 37
7 years 9 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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 9 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.
@steve Yeah I didn't think of puttting a pipe after the question either.
The topic has been locked.