Graphic Added into Pick, Sort and Rank Box | XM Community
Question

Graphic Added into Pick, Sort and Rank Box

  • 30 September 2019
  • 5 replies
  • 46 views

Badge +3
I'd like to add an image to the box where items are sorted to. I tried adding the piped text of an image, but that didn't work. Any ideas?
THANKS!

5 replies

Userlevel 7
Badge +6
Nevermind, I previously misread your question.

Let me research a solution.
Userlevel 7
Badge +6
You can do this by adding the photo to a Descriptive Text question then piping in the Question Text from that question (which you can just hide so it is never shown).

!

!
Userlevel 7
Badge +27

Another approach would be to set the background of the box with an image using JS. Try adding the below to the OnReady section of the question’s JavaScript, updating the image url as needed:

jQuery("#"+this.questionId+"group0").css({
"background":"url('https://img.freepik.com/free-photo/white-cloud-blue-sky_74190-2381.jpg?size=626&ext=jpg')",
"background-size": "100% 100%",
"background-repeat": "no-repeat",
"background-position": "center center"
});

 

Badge +2

Is it possible to add an image in the ‘Name of the Group’ of a pick up, rank and order question. I aimed to do that with HTML code with rich content editor function.

Unfortunately I cannot visualize the rich content editor when I go to change the name of a group for this kind of question.

Can you please help?

Userlevel 4
Badge +12

 Hi @giuliopalma save the image in the survey flow and pipe text the value in the name of the group.

 

Leave a Reply