Hide field when editing

When configuring a field, you can use the Hide field when editing option to make sure a specific field is hidden in the entry editor. Even if the field is not displayed in the entry editor, its content remains present in the API response.

To hide a field from the entry editor:

  1. Log in to the Contentful web app.

  2. Go to the Content model tab.

  3. Go to the required content type and click to open it. The content type editor is displayed.

  4. Go to the required field and click on the three dots actions menu. Select Hide field when editing.

    Content modeling basics hide field when editing

  5. Click Save to apply changes to your content type.

NOTE: Even if the field is hidden, users can still show and edit its content in the entry editor. To restrict a user from editing the hidden field, configure the user's space role accordingly — for example, add a deny rule preventing the user from editing this field.

Content modeling basics show hidden fields

IMPORTANT: Entries with any required fields left empty cannot be published, even if these fields are hidden in the field editor. To continue publishing entries with hidden fields, change the validation of these fields to optional by de-selecting the Required field option under the "Validation" section for each field. You can manually update each field, or run a script to make these changes in bulk. For more information about the script, see the Validations section on the Content Management API page.