Image Choicev1
An image choice in an Adaptive Form allows users to select one or more options by clicking on images. It supports both single-select (radio button behavior) and multi-select (checkbox group behavior) modes, making it ideal for visual selection scenarios like choosing products, colors, or styles.
Examples
Single Select (Radio Behavior)
Simple Image Choice with two options in single-select mode.
- Properties
- Markup
- JSON
- jcr:title: Favorite Component
- description: <p>Select your favorite form component.</p>
- orientation: horizontal
- tooltip: <p>Choose one option.</p>
- imageSrc: /content/dam/core-components-examples/library/forms-components/radiobuttongroup.svg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png,/content/dam/core-components-examples/library/forms-components/checkboxgroup.svg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png,/content/dam/core-components-examples/library/forms-components/dropdown.svg/_jcr_content/renditions/cq5dam.thumbnail.319.319.png
- enum: radiobutton,checkbox,dropdown
- type: string
- enumNames: Radio Button,Checkbox Group,Dropdown
- selectionType: single
- sling:resourceType: forms-components-examples/components/form/imagechoice
- fieldType: radio-group
- tooltipVisible: true