Skip to content

Allow field defaults to be computed #1442

@edalzell

Description

@edalzell

Use Case:

I have a custom Timezone dictionary and I'd like to have a default that's pulled from an addon's settings.

Best way IMO, would be to have a default: computed (like field visibility) and then a way to register a closure for that field. Something like Blueprint/Fieldset::default('blueprint', 'field', function () { ...});

The default should be selected and visible on a new entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions