Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Add frontend forms support for Group fieldtype #10976

Draft
wants to merge 4 commits into
base: 5.x
Choose a base branch
from

Conversation

jesseleite
Copy link
Member

@jesseleite jesseleite commented Oct 18, 2024

Right now, if you Group::makeSelectableInForms(), a bunch of things break because there is no payload handling for recursion in the {{ fields }} loop.

TODO:

  • Recursively prepare renderable field objects
    • Non-JS forms
      • Make sure group children submits correct name (ie. some[child][field])
      • Make sure error bag still works
      • Make sure old input still works
    • Alpine driver forms
      • Make sure group children submits correct name (ie. some[child][field])
      • Make sure error bag still works
      • Make sure old input still works
  • Flesh out default group.antlers.html view to be used by {{ field }} rendering within {{ fields }} loop
  • Change other inputs to use name instead of handle (because they need to be nested[field][format])
  • Add test coverage
  • Make group fieldtype available to frontend forms

Closes statamic/ideas#1228

@jesseleite jesseleite changed the title [5.x] Add frontend support for Group fieldtype [5.x] Add frontend forms support for Group fieldtype Oct 21, 2024
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.

Add frontend support for Group fieldtype
1 participant