You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This is similar in nature to #1975, but does not involve UUIDs, so I'd hoped it might be easier to achieve!
Many times when I'm creating a collection, I want to set the default value of a field to the value of a different field. For example, if I had a collection with title (for title of an article) and name (the short name/slug) fields, I'd like the default value of title to be set to the value of name. However, currently this is not possible.
Describe the solution you'd like
I'd like to be able to reference another field using something like default: '{{fields.name}}' or default: '{{slug}}'
Additional context
Here's an example of the use case I have in mind, where I have appended (see highlighting) what I expected to be possible:
The text was updated successfully, but these errors were encountered:
You can get the value from the name field and set it on the title field if the latter doesn't exist.
The thing is that default values are currently applied before the editor is opened and the entry is saved for the first time, so it's the default value for the field.
This suggestion can be classified as a fallback value.
Closing this issue as I think it is covered by the first bullet in #1975:
Generalise the use of placeholders so that they can be used in places other than in generating the slug field.
Is your feature request related to a problem? Please describe.
This is similar in nature to #1975, but does not involve UUIDs, so I'd hoped it might be easier to achieve!
Many times when I'm creating a collection, I want to set the default value of a field to the value of a different field. For example, if I had a collection with
title
(for title of an article) andname
(the short name/slug) fields, I'd like the default value oftitle
to be set to the value ofname
. However, currently this is not possible.Describe the solution you'd like
I'd like to be able to reference another field using something like
default: '{{fields.name}}'
ordefault: '{{slug}}'
Additional context
Here's an example of the use case I have in mind, where I have appended (see highlighting) what I expected to be possible:
The text was updated successfully, but these errors were encountered: