Warning message

Documentation is currently being migrated into the new system. Some pages might be temporarily missing, and some guides might appear empty. Thank you for your patience while we are improving Drupal.org documentation.

Adding fields to the comments for a content type

Last updated on
August 23, 2016 - 13:50

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".