Allow admin.readOnly to take in a function #1957
paulpopus
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be very useful to allow the admin.readOnly field config take a function with the doc data being passed into it like the hooks, so that we can more easily change if the field is editable dynamically.
Example use case:
Slug field with a checkbox if it should be editable, if not checked, then the field remains readOnly and the value of the field would be generated, otherwise the editor can easily toggle it on.
Beta Was this translation helpful? Give feedback.
All reactions