Comments (5)
@glettl I just opened PR #39 for this, let me know what you think!
from plugin-form-builder.
Hey @glettl what you're describing makes sense to me. And you're right, we should allow for additions to made to the fields within each block not just the block itself. But I think the API could be simpler than what you propose, we're already merging the partial block config in with the plugin's default block, so it sounds like we just need to take this one step further and merge the fields within the block, too.
fields: {
email: {
fields: [...] // merge this instead of replace
}
}
What do you think of this?
from plugin-form-builder.
I know that there are cases where one wants to redefine all form-fields, however it would be nice if a way to simply add custom fields to an form-field could be provided.
Yep ok I see exactly why you proposed your two solutions. Either add a flag to set the merge strategy, or import the fields to merge them yourself. It does feel like merge should have been the default, but definitely don't want to introduce breaking changes. So let's just export the fields like you propose (option 2) this way we don't have to change the API at all.
from plugin-form-builder.
This was just published in 1.0.14-canary.0
🎉
from plugin-form-builder.
And now v1.0.14
🚀
from plugin-form-builder.
Related Issues (20)
- Localization is not managed in `sendEmail` process HOT 4
- File upload field HOT 2
- Require `slug` in `Partial<Block>` type HOT 1
- Is this still maintained? HOT 4
- Incorrect type definition HOT 3
- Safely fail `variables.find` HOT 1
- Add upload field HOT 1
- [Feature request] Form submissions export as CSV HOT 8
- Add documentation about how to create form submissions + a bug HOT 1
- Need to wire up submission validations HOT 8
- Document Front End Implementation HOT 3
- How to use it with @payloadcms/next-payload ? HOT 2
- Feature request: support custom defaultColumns for Form Submissions collection HOT 1
- Feature Request: select multiple support HOT 2
- Required fields are not validated on submission HOT 3
- Error after submitting the form on Next.js HOT 6
- Field input type hidden HOT 1
- Unable to send form builder emails with resend
- Grouping fields? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-form-builder.