Fixes #10952. The form builder plugin does not currently allow creating form submissions from within the admin panel. This is because the fields of the form submissions collection have `admin.readOnly` set, ultimately disabling them during the create operation. Instead of doing this, the user's permissions should dictate whether these fields are read-only using access control. For example, based on role: ```ts import { buildConfig } from 'payload' import { formBuilderPlugin } from '@payloadcms/plugin-form-builder' export default buildConfig({ // ... plugins: [ formBuilderPlugin({ formSubmissionOverrides: { access: { update: ({ req }) => Boolean(req.user?.roles?.includes('admin')), }, }, }), ], }) ``` --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1211454879207842
4.3 KiB
4.3 KiB