You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add a custom field in the plugin configuration, it displays correctly in the admin UI but the data is not persisted.
If I add the "slug" property the data is persisted but there is a typescript error because is missing in the interface FieldConfig.
Reproduction Steps
Declare the custom field
import{fields,formBuilderPlugin}from"@payloadcms/plugin-form-builder";import{Block}from"payload";exportconstformBuilderPluginConfig=formBuilderPlugin({redirectRelationships: ["pages"],fields: {hidden: {// slug: "hidden", // <- With this prop workslabels: {singular: 'Hidden',plural: 'Hidden'},fields: [
...(fields.textasBlock).fields// Other fields]}},})
@matteo-naif did you find a work around for this? running into this same issue currently. Also trying to add a custom "hidden" field to the formBuilder plugin.
Link to reproduction
Payload Version
3.0.0-beta.86
Node Version
v20
Next.js Version
15.0.0-canary.121
Describe the Bug
If I add a custom field in the plugin configuration, it displays correctly in the admin UI but the data is not persisted.
If I add the "slug" property the data is persisted but there is a typescript error because is missing in the interface FieldConfig.
Reproduction Steps
Adapters and Plugins
The text was updated successfully, but these errors were encountered: