As a developer, I want to mark a specific form item in a content type (or mixin) as read-only, so that editors can see the value in Content Studio but cannot change it.
Use case
We have fields whose values are set programmatically, e.g. populated by an import job, a scheduled task, or derived from another system and should never be edited by hand in Content Studio. Today editors can see these fields and freely overwrite them, which breaks the data or gets silently undone on the next sync. We still want the value visible in the form (for context), just not editable.
Current situation (XP8)
As far as I can tell there’s no supported way to do this at form-item level:
- Looking at the form-item reference (e.g. TextLine), the available options are things like
default,max-length,show-counterandregexp— there’s noread-only/disabledflag. - Permissions are item-level, not field-level, so they can’t lock a single field while leaving the rest of the content editable.
Proposed feature
A simple boolean option on the form item, fitting the existing YAML structure, e.g.:
form:
- type: "TextLine"
name: "externalId"
read-only: true
The field would render in a disabled/read-only state in Content Studio visible but not editable similar to how the published Path field locks, rather than hiding the field entirely.