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.

field with strict string options

default discord avatar
eloahsam2 years ago
4

Is it possible to have a field that only accepts specific strings


Eg status field only accepts these values (“open”, “close”,”pending”)



anyone will be able to add a row to the table through GRAPHQL or rest api


and admin will be able to update the status via the payload dashboard but to specific values from drop-down



How can I go about this ?

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.