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?
Hi! You are looking for access control:
https://payloadcms.com/docs/access-control/fieldsThanks Jarrod! This seems to work.
Star
Discord
online
Get dedicated engineering support directly from the Payload team.