Adding fields to the comments for a content type

Last updated on
23 August 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

To add fields to the comment form for a given content type:

  1. Navigate to the Content types administration page (Administer > Structure > Content types or http://example.com/admin/structure/types).
  2. Find the content type for which you'd like to add fields on the comment form, and click "Manage fields" next to it.
  3. Click the "Comment fields" tab.
  4. In the "Add new field" section, enter a human readable "Label" for the field.
  5. In the "Name" field, enter the machine name for the field. (You can only use numbers, lower-case letters, and underscores.)
  6. In the "Select a field type" dropdown list, select one of the following types:
    • Boolean
    • Decimal
    • File
    • Float
    • Image
    • Integer
    • List
    • List (numeric)
    • List (text)
    • Long text
    • Long text and summary
    • Term reference
    • Text
  7. In the "Widget" dropdown, select a widget. The options vary depending on the field type chosen.
  8. Click "Save".

Help improve this page

Page status: No known problems

You can: