# Make Fields Mandatory in Editor

**URL:** <https://community.prismic.io/t/make-fields-mandatory-in-editor/16003>\
**Category:** Features\
**Tags:** graphql, slice-machine\
**Created:** [May 28, 2024, 11:13am UTC](https://community.prismic.io/t/make-fields-mandatory-in-editor/16003 "2024-05-28T11:13:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![accounts10](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/accounts10/32/4821_2.png) [@accounts10](https://community.prismic.io/u/accounts10)\
**Post date:** [May 28, 2024, 11:13am UTC](https://community.prismic.io/t/make-fields-mandatory-in-editor/16003/1 "2024-05-28T11:13:41Z")

</div>

**Current Issue:**  
Right now it is not possible to set certain fields in Prismic as mandatory to be filled out. This leads to various issues, as we have basically to check every field if it can be empty/null. Therefore gives us the need to write a lot of boilerplate code just to validate in the code if a certain field is filled out so the builds won't fail.

**Solution**  
Drums please, super easy, make certain fields mandatory by the user the fill them out - else he should not be able to save the document.

Preferably it would be cool if we can also say what should be filled in e.g. Integer or String.

Thanks for your support

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [June 8, 2024, 4:53am UTC](https://community.prismic.io/t/make-fields-mandatory-in-editor/16003/3 "2024-06-08T04:53:20Z")

</div>

Thanks for sharing your feedback @accounts10.
