[v3] Need example of custom form in admin #7265
elliott-w
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
For anybody stumbling across this, here's my attempt so far: https://gist.github.com/elliott-w/ba3af93a6ed535a7bdfc065db80b0870 Limitations:
Will throw an error when collapsing/uncollapsing because they assume there's a
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation Issue
I'm trying to create a settings page for a plugin, but there is no documentation on how to create a custom form in a custom view in the admin UI that can execute a custom action server-side.
Additional Details
There's the:
Form
andRenderFields
components from@payloadcms/ui
mapFields
function from@payloadcms/ui/utilities/buildComponentMap
buildStateFromSchema
function from@payloadcms/ui/forms/buildStateFromSchema
But there's no documentation around how these components/functions work and how to stitch them all together to create a custom form.
Some more nice-to-haves would be:
Show/hide image
Beta Was this translation helpful? Give feedback.
All reactions