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

Global form submissions #76

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JeffersonBledsoe
Copy link
Member

@JeffersonBledsoe JeffersonBledsoe commented Jan 31, 2025

This PR adds the ability for forms to be sent from outside the page they are on. The reasoning for this is so forms can be created elsewhere and inserted into a page, such as with a slots/ portlets mechanism.
This is achieved by creating a global_forms registry where forms are stored with a global_block_id which is generated on block save and saved with the block. If the client sends a form submission which matches against a global block id, that global form will be used.

TODO

  • Save data action

@JeffersonBledsoe JeffersonBledsoe changed the title WIP: Global form submissions Global form submissions Feb 6, 2025
@djay
Copy link
Member

djay commented Feb 10, 2025

@mamico This is now working for us for our needs (as described in collective/volto-form-block#123). It is however a fairly big architectural change. Any comments on this approach? is it worth us finishing or there is no chance of getting this merged?

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.

Can't have forms shared across many pages
2 participants