Mark a field as deprecated #15632
-
This is another idea coming from Sanity where you can mark a field as deprecated.
Quick mockup using existing elements: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I like this idea, but I think the ability to add warnings and tips to custom fields would cover the use case (aside from the read-only thing), and would probably be more useful vs. a dedicated feature to "deprecate" fields. I suggested this a while back: #12821 That said, if it was possible to make custom fields read-only in field layouts (perhaps even conditionally), that would also be really cool. (FWIW, the Incognito Field plugin can currently be used to create text fields that are conditionally read-only, hidden or disabled.) |
Beta Was this translation helpful? Give feedback.
-
Just added the ability to set tips and warnings on fields within field layout designers, for Craft 5.4 (1d3658d). I think this makes more sense than an explicit “deprecated” field concept for a couple reasons:
Here’s an example, combined with a condition that hides the field entirely when it doesn’t have a value: |
Beta Was this translation helpful? Give feedback.
Just added the ability to set tips and warnings on fields within field layout designers, for Craft 5.4 (1d3658d).
I think this makes more sense than an explicit “deprecated” field concept for a couple reasons:
Here’s an example, combined with a condition that hides the field entirely when it doesn’t have a value: