image formatting | XM Community
Skip to main content
Question

image formatting

  • May 28, 2025
  • 11 replies
  • 59 views

Forum|alt.badge.img+2

I have a question in a survey that displays 20 choices with images and their respective captions, and the participant is supposed to select 10 options. However, the display window of the 10 chosen options is distorted, along with their respective image captions. how to resolve the formatting issue?

11 replies

  • Level 4 ●●●●
  • 275 replies
  • May 28, 2025

Ensure you are not changing the dimensions while uploading the image to library or while inserting it into the question.

 

 


Forum|alt.badge.img+21
  • 319 replies
  • May 28, 2025

Hi ​@PRIYABHARDWAJ ,

 

You might wish to consider uploading all images with a similar dimension or restrict the size of the images to a certain dimension height and width so that the display window is more consistent.

 

for example, 

<figure style="max-width: 100%; max-height: 100%;">
<img
src="Qualtrics library link for image"
alt="Descriptive text of the image if required"
style="max-width: 100%; max-height: 100%; object-fit: contain;"
width="460"
height="460"
>
<figcaption style="text-align: center; font-size: 14px; color: #555;">
Your caption goes here
</figcaption>
</figure>

 


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • May 28, 2025

@Chee Heng_SZ , yes, all the images are set for the same dimensions. But I am still facing the issue of displaying the image caption text in the next piped question that displays only the selected items. 


Forum|alt.badge.img+21
  • 319 replies
  • May 29, 2025

Hi ​@PRIYABHARDWAJ ,

 

Can you check if your first question’s image is set up correctly?

If you copy paste on the choice without entering the source code, Qualtrics might sometimes interpret wrongly and cause the structure to change.

 

I select choice 1, select rich content editor, select source code icon, then paste the code.

Giving something like this:

Rich content editor>source code
Similar steps for the remaining choices while in survey builder
Preview of question in block

Linking to your other question:

the image may be “push” to be smaller, or a horizontal scroll bar may appear due to the limited width but the caption is still below the image.

 


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • June 2, 2025

@jbk  yes I kept the image dimensions the same


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • June 2, 2025

@Chee Heng_SZ where do I paste the source code?- 

 


Forum|alt.badge.img+21
  • 319 replies
  • June 2, 2025

@Chee Heng_SZ where do I paste the source code?- 

 

click on the arrow on the right of each choice, select rich content editor and follow the rest which i mentioned in my previous post.

Hi ​@PRIYABHARDWAJ ,

 

Can you check if your first question’s image is set up correctly?

If you copy paste on the choice without entering the source code, Qualtrics might sometimes interpret wrongly and cause the structure to change.

 

I select choice 1, select rich content editor, select source code icon, then paste the code.

Giving something like this:

Rich content editor>source code
Similar steps for the remaining choices while in survey builder
Preview of question in block

Linking to your other question:

the image may be “push” to be smaller, or a horizontal scroll bar may appear due to the limited width but the caption is still below the image.

 

 


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • June 2, 2025

@Chee Heng_SZ as I open rich content editor, this is what I see-

 should I paste the source code there and remove everything else that we can see in the screenshot currently?


Forum|alt.badge.img+21
  • 319 replies
  • June 2, 2025

@PRIYABHARDWAJ

There are no screenshots in your last post and I wouldn’t be able to tell if anything inside is required for other purpose of your survey.

 

Please refer to the information below for reference:

1) Accessing Rich Content Editor for choice

2) Source Code


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • June 2, 2025

@Chee Heng_SZ pleases see now, thanks I will follow the hyperlink that you have shared-

 

 


Forum|alt.badge.img+21
  • 319 replies
  • June 2, 2025

@Chee Heng_SZ pleases see now, thanks I will follow the hyperlink that you have shared-

 

 

you can copy the src and caption of this image and replace them inside the code.

For example,

<figure style="max-width: 100%; max-height: 100%;">
<img
/* Replace Qualtrics library link for image with your image link*/
src="Qualtrics library link for image"
alt="Descriptive text of the image if required"
style="max-width: 100%; max-height: 100%; object-fit: contain;"
width="460"
height="460"
>
<figcaption style="text-align: center; font-size: 14px; color: #555;">
/* Replace text below for your caption*/
Coles peanuts...
</figcaption>
</figure>