Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

How to create custom array fields?

default discord avatar
blankeos2 years ago
2
https://payloadcms.com/docs/admin/components

Using these docs, how can I create custom array fields?



I find the default array field UI really unintuitive in terms of creating an array field that basically has just one text field:


{
      name: "credentials",
      type: "array",
      fields: [
        {
          name: "name",
          type: "text",
          required: true,
        },
      ],
    },
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.