Skip to content

[6.x] Bring back the Inline option for Multiple Choice, Checkboxes and Yes/No form fields - #16065

Open
duncanmcclean wants to merge 1 commit into
6.xfrom
16064
Open

duncanmcclean wants to merge 1 commit into
6.xfrom
16064

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where the Multiple Choice and Checkboxes form fields no longer offered an "Inline" option in the form builder, even though the default field views still use it.

This was happening because Forms 2 didn't carry the inline config field over to the new form fieldtypes. The setting still did something (toFieldArray() passes extra config through, and the default views check inline), but it couldn't be seen or changed in the builder.

This PR fixes it by adding the "Inline" toggle back to the Multiple Choice and Checkboxes form fieldtypes. It also adds it to Yes/No, since its default view already checks inline too.

This PR also converts appearance: inline to inline: true when converting Forms 1 radio and checkboxes fields. Since #14766, fields saved in the blueprint builder store appearance: inline rather than inline: true, so without this they'd stop rendering inline after converting.

Screenshots

Multiple Choice

Checkboxes

Yes/No


Fixes #16064
Caused by #15039
Related: https://ampcode.com/threads/T-39463928-20c8-49e5-8484-ca82a9b452c0

This branch has not been deployed

No deployments
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.

Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use it

2 participants