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 make a field readOnly AFTER creation?

default discord avatar
aaronhahaha3 years ago
2

Hi everyone,



I have a field that should not be modified after creation. I added a readOnly property, which works fine for already created items, but it prevents adding a value on creation, which I do not want.



How can I prevent a field from being modified but still allow it to be created initially?

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.