Problem/Motivation

Description

Currently, when creating or configuring blocks through the daisy_cms_layout_builder module, all block fields are optional by default.
It would be helpful to have a feature that allows developers or site builders to mark specific block fields as required, while leaving others optional.

This would enhance form validation, ensure data consistency, and provide better control over the block creation process.

Example use case

  • A custom block has multiple fields such as:
    • Title → should be required
    • Subtitle → optional
    • Image → required
    • Description → optional
    Command icon Show commands

    Start within a Git clone of the project using the version control instructions.

    Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    zemike created an issue. See original summary.

    zemike’s picture

    Issue summary: View changes

    zemike’s picture

    Assigned: zemike » christian.wiedemann
    Status: Active » Needs review

    christian.wiedemann’s picture

    Assigned: christian.wiedemann » Unassigned
    Status: Needs review » Fixed

    Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization that helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.