Input Widget > Table Display

This module allows you to attach tabular data to a node in Drupal 6 or any entity in Drupal 7. The input form allows the user to specify the number of rows/columns and allows entry into each table cell using text fields. Tables can be defined globally or on a per-node/per-entity basis, so every node can have multiple tables of arbitrary size. Enter data by hand or by CSV upload. Table data can also be downloaded as CSV files by your users if you so choose. Tables are multi-value and revision capable.


Modules that extend TableField:

New features in the 7.x-3.x branch

You are invited to try the D7 newest version. It is stable and provides an automated upgrade when coming from the 7.x-2.x version. Before upgrading backup your database just in case.

  • Display related settings have been moved from 'manage fields' to 'manage display' to differ the display of the same field per content type.
  • Offers 'Raw Data (JSON)' format besides 'Tabular View'. For use with Views Datasource apply the latest patch on it of #2468325: For nesting JSON structures, allow certain fields to be designated for "raw passthrough".
  • The table content can now be indexed with the Search API.
  • Remove all empty columns and rows instead of only the trailing ones.
  • Hide a column if every corresponding row is empty (excluding header).
  • Make it possible to disable sticky table headers.
  • CSV import now working with non-UTF8 encoded files.
  • Allow to have the first column as header instead of first row (vertical).
  • Support for Tablesorter.
  • XML output.
  • Allow linebreaks (textarea).
  • Support for Multiple Fields Remove Button.
  • Optionally themeless output of a node's tablefield on the path 'node/%/themeless' (HTML, JSON or XML).
  • Configurable maxlength.
  • Make striping (odd/even class) optional.
  • Other modules are now able to override the output of the tablefield.
  • Ability to hide or disable the import CSV option.


>=PHP 5.4 for the 7.x-3.x branch if you intend to use Raw data (JSON) output.
In PHP 5.4.0 JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, and JSON_UNESCAPED_UNICODE options were added to json_encode that the 7.x-3.x branch makes use of.


Drupal 8

The alpha release is only alpha because an upgrade path has not been tested. The 8 version is widely used. Currently there are no critical or major bugs.

Drupal 7 / Backdrop CMS

  • There is a full version of tablefield available for Backdrop CMS.
  • Development will happen in tandem for Drupal 7 and Backdrop CMS indefinitely.

Drupal 6

The Drupal 6 version of this module is unsupported.

Supporting organizations: 
Development time (D7)

Project Information