Skip to content

Alert-level warning for inputfields #124

@Toutouwai

Description

@Toutouwai

Short description of the enhancement

I think it would be useful if there was a status below that of "required" that could be given to inputfields. So this status would produce an alert similar to the one that occurs when a required inputfield is left blank (message in system notices and within inputfield), with the differences being a lower level of intensity (e.g. an orange notice rather than red) and the alert would not prevent the publishing of pages.

Also, it would be possible to conditionally set the alert status and message in a hook, so there could be some logic applied. So you could give some notice like: "You have added a sponsor logo but no link URL. It is recommended provide a link URL for each sponsor logo."

I am already doing this with inputfield render hooks and custom CSS, but thought it would be a nice feature to have in the core.

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