4

I'm using Prismic.io as a headless CMS and bringing content into my React front end. How do I set up a content type so that fields are mandatory?

Here's what I have so far...

{
  "Main" : {
    "uid" : {
      "type" : "UID",
      "config" : {
        "placeholder" : "UID"
      }
    },
    "image" : {
      "type" : "Image"
    },
    "title" : {
      "type" : "StructuredText",
      "config" : {
        "single" : "heading1",
        "placeholder" : "Title..."
      }
    },
    "description" : {
      "type" : "StructuredText",
      "config" : {
        "multi" : "paragraph,em,strong,hyperlink",
        "placeholder" : "Description..."
      }
    }
  }
}
DLight
  • 1,535
  • 16
  • 20
Eric Clack
  • 1,886
  • 1
  • 15
  • 28

1 Answers1

4

as for now, prismic.io CMS doesn't allow required fields. The only required field is the native "UID" field. They recommend using the in-website preview for publishers to preview the result before shipping content rather than adding constraints in the editor.

T04435
  • 12,507
  • 5
  • 54
  • 54
Nacho
  • 56
  • 1
  • 12
    Prismic platform is definitely fast to setup and has a slick UI but lacks some of the most BASIC features of a CMS. – doublejosh Oct 10 '17 at 23:44