Skip to content

Provision to assign a field as mandatory #1207

@KartikWatts

Description

@KartikWatts

Is your feature request related to a problem? Please describe.

Currently, there is no way to ensure that a field is mandatory in a Slice or Custom type.

Describe the solution you'd like

I was considering a solution like providing a checkbox to assign a field as mandatory in the Field Model dialog as in SS:



On the Prismic website, if the field assigned as mandatory is left blank, there can be the same functionality as for UID:

Screenshot_576

Additional context

As we have multiple content creators using the Prismic website, having the validation for fields can be helpful as this would ensure:

  • For the content team: A mandatory field is never left blank by mistake.
  • For the developers: They would be sure of the availability for certain fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions