Skip to content

Allow setting default value of a field to that of a field in same collection #5256

Closed
@lfracalossiFA

Description

@lfracalossiFA

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:

Screen Shot 2021-04-12 at 5 37 46 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions