-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[4.x] Add support for looping over blueprint sections in frontend forms #7778
Conversation
Thank you! This is awesome! Support for tabs would be great too. Then we could use tabs to build a multi-step form and still use sections for each step. |
Good feedback thanks! We're going to hold off on supporting both blueprint sections AND tabs for now, as that would add yet another layer of complexity/confusion for users. That said, this PR is very much a step in that direction; To give people more options in the front end for rendering sections of fields (whether that be We have aspirations of circling back and providing native multi-step support in the default alpineJS form driver, at which point blueprint tabs or "form steps" on the CP side might feel much more palpable. Until then, multi-step is still very doable without this PR even, as the |
I figured. Just wanted to place the idea here. Thanks again! This is going to be great! |
This is great! |
Hey @jesseleite is it an idea to make the section |
Another issue I just noticed is you can't seem to not give a section a display name. This results in an Ideally you could leave it empty, for example if you only use one section you probably don't want to render the display name of that section. The blueprint builder seems to support this currently and it seems the default behaviour. |
PR Summary
|
Lovely. This fixes all the issues I found regarding this PR. Have a good weekend all! |
Some have expressed wanting to render sections of fields in frontend forms. Now that we have blueprint sections within blueprint tabs, this is very doable...
This PR adds a
sections
array to the form tag, so that users can render<fieldset>
blocks (for example, as per Mozilla's docs here)...Which allows for styled rendering of sections (pardon my crude css)...