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:
- Navigate to the Content types administration page (Administer > Structure > Content types or
http://example.com/admin/structure/types
). - Find the content type for which you'd like to add fields on the comment form, and click "Manage fields" next to it.
- Click the "Comment fields" tab.
- In the "Add new field" section, enter a human readable "Label" for the field.
- In the "Name" field, enter the machine name for the field. (You can only use numbers, lower-case letters, and underscores.)
- 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
- In the "Widget" dropdown, select a widget. The options vary depending on the field type chosen.
- Click "Save".
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion