Image Content Schema Properties
A non-interactive element that displays an image or video within the survey.
Element type: image
Key properties: 6
Generation Hints
Section titled “Generation Hints”- Aliases: display image, media block, static image, video.
- Use when: showing media that does not collect an answer.
- Recommended properties:
type,name,imageLink,imageFit,altText.
{ "type": "image", "name": "logo", "imageLink": "https://example.com/logo.png", "altText": "Company logo" }Key Properties
Section titled “Key Properties”imageLink
Section titled “imageLink”- Type:
file - Default:
— - Localizable: Yes
Specifies an image or video URL.
imageFit
Section titled “imageFit”- Type:
string - Default:
"contain" - Allowed values:
none,contain,cover,fill
Specifies how to resize the image or video to fit it into its container.
imageHeight
Section titled “imageHeight”- Type:
string - Default:
"150"
Specifies the height of a container for the image or video. Accepts positive numbers and CSS values.
imageWidth
Section titled “imageWidth”- Type:
string - Default:
"200"
Specifies the width of a container for the image or video. Accepts positive numbers and CSS values.
contentMode
Section titled “contentMode”- Type:
string - Default:
"auto" - Allowed values:
auto,image,video,youtube
Specifies the type of content that the Image question displays.
altText
Section titled “altText”- Type:
string - Default:
— - Localizable: Yes
Specifies a value for the alt attribute of the underlying element.
Shared Properties
Section titled “Shared Properties”This page lists only properties that are specific to this element type or especially important for generation.
- Use Shared Question Properties for common fields such as
name,title,description,isRequired,requiredIf,visibleIf,enableIf,readOnly,defaultValue,validators,width, and layout options.