Image block

Use the image block to show an image in your form, with an optional caption.

What it shows

The block displays an image and can show text below it. alt provides alternative text for screen readers. The block collects no answer.

Configuration

PropertyTypeRequiredDefaultAllowed values / validationDescription
typestringYesn/aimageSelects the block.
srcstringYesn/aAt least 1 character; an image URLImage to show.
altstringYesn/aAny text; may be emptyAlternative text for screen readers.
captionstringNoNoneAny textText shown under the image.
alignmentstringNocenterleft, center, rightHorizontal position.
sizestringNofulltiny (160 px), xs (240 px), small (320 px), medium (640 px), large (960 px), full (100% of form width)Largest width of the image.
maxWidthnumberNoNone (size determines width)PixelsMaximum width in pixels. When set, it replaces size.
aspectRatiostringNooriginaloriginal, 16:9, 4:3, 1:1, customShape of the image frame.
lazybooleanNotruetrue, falseWhen true, the image loads when it is about to scroll into view; when false, it loads at once.
visible_ifcondition arrayNoNoneSame condition format as fieldsShows the block when the condition is true.
hide_ifcondition arrayNoNoneSame condition format as fieldsHides the block when the condition is true.

Where to use it

Add the block to the ui array on a start page, question page, or end page. End pages hold display blocks only.

The block’s visibility follows the shared rule: it is shown when visible_if is true or absent, and hide_if is not true.

Example

{ "type": "image", "src": "https://images.unsplash.com/photo-1522202176988-66273c2fd55f", "alt": "Team working together at a table", "caption": "Our 2026 workshop", "alignment": "center", "size": "medium", "aspectRatio": "16:9", "lazy": true }