Slug field: option to make field readonly
Hi We like to work with the slug field to have automatic slug generation. However, we have found that in certain cases (especially with collections, and when it comes to relations) it would be very useful to have the option to use the slug field as a read-only field. Thank you :)
For example something like a readonly:boolean property …
slug?: {
label?: string;
generate?: (name: string) => string;
description?: string;
+ readonly?: boolean;
validation?: {
length?: {
min?: number;
max?: number;
};
};
};
Would love to see this soon. In my case, I have a text field (could also be a select, I suppose) that needs to be a specific value. I'd like to set this in the config and then either have it "readonly" or "hidden" in the UI for my client. It needs to be present each time a new entry is created.
I should mention, for now, I've just created a select field with only one entry. But having this enhancement would allow me to simplify and reuse my config.
Would like to see this. Pretty important. Gotta be a way to simply disable the field in the interface based on this type of suggested boolean? Wonder if anyone has some JS ideas