Skip to content

[6.x] Forms 2: Show option dropdown when adding logic against Image Choice fields - #15096

Merged
jasonvarga merged 1 commit into
forms-2from
image-choice-conditions
Aug 3, 2026
Merged

[6.x] Forms 2: Show option dropdown when adding logic against Image Choice fields#15096
jasonvarga merged 1 commit into
forms-2from
image-choice-conditions

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request adds support for showing Image Choice options in a dropdown when configuring field conditions, matching the existing behaviour for Select, Checkboxes, Radio, and other option-based fieldtypes.

This PR also fixes normalizeInputOptions to correctly read the label key when normalizing option objects that use a {key, label} shape (like Image Choice) rather than the {key, value} shape used by Select/Checkboxes/Radio.

adds `image_choice` to the list of fieldtypes that get a select-style
value input in field conditions. its options use a `{key, label,
image}` shape (grid-based) rather than the `{key, value}` shape used
by select/checkboxes/radio (array-based), so `normalizeInputOptions`
now falls back to `label` when `value` isn't present.
@jasonvarga
jasonvarga merged commit 1460605 into forms-2 Aug 3, 2026
20 checks passed
@jasonvarga
jasonvarga deleted the image-choice-conditions branch August 3, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants