Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provision to assign a field as mandatory #1207

Open
KartikWatts opened this issue Nov 1, 2023 · 2 comments
Open

Provision to assign a field as mandatory #1207

KartikWatts opened this issue Nov 1, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@KartikWatts
Copy link

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.
@KartikWatts KartikWatts added the enhancement New feature or request label Nov 1, 2023
@comeprismic
Copy link

We understand that field validations in some form are desired by our customers. We are currently focused on the new Page Builder, and once this is done we will evaluate a potential solution for integrating field validations as part of this experience. However, we have not scheduled anything yet but will let you know when you start to look into the topic.

@timvandenhof
Copy link

A year has passed and the new page builder is out for a while now (congrats!). Can you share ideas about validations? We consider this as one of the major downsides of Prismic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants