Skip to content

Conversation

@godismyjudge95
Copy link
Contributor

Simplest PR ever, changing the default value field on the checkboxes config from text to taggable allows for multiple options to be preselected as defaults. No other changes needed! And it is backwards compatible with only a single default option set.

I tried for a good bit to come up with a test that could cover this but I think the defaults functionality is mostly on the Vue side so not easily testable? I did test it locally and it works perfectly in all scenarios.

@jasonvarga
Copy link
Member

Thanks! I just pushed a fix for taggable to handle strings.

Otherwise if you previously had a string of bar for example, it would render like this:

CleanShot 2025-08-05 at 11 33 16

@jasonvarga jasonvarga merged commit 3360663 into statamic:5.x Aug 6, 2025
24 checks passed
@godismyjudge95 godismyjudge95 deleted the multiple-defaults-for-checkboxes branch August 15, 2025 16:18
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.

3 participants