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.

Group field required Type

default discord avatar
davidko6042 years ago
2

Hi,



I'm on payload version

1.6.22

and there was an update a few versions ago for arrays and groups to no longer be a forced required type.



For array fields we still have the option to add the parameter

required: true

but this is not he case for group fields.



I require the group type to exist in some cases and since it is now optional I am having type issues elsewhere in my monorepo.



Can we have an option to force a group as required?

  • discord user avatar
    denolfe
    2 years ago

    Hey David, feel free to open a feature request for this in GH Discussions. It seems like something we should look at.

  • default discord avatar
    lzyaclast year

    did this get resolved?

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.