Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Hidden

Security covered Under active development 3,480 sites

This module provides hidden form widgets for various field types, allowing you to include hidden input fields in your forms. It also offers options for controlling how these hidden fields are displayed (or not displayed) when content is viewed.

Hidden fields galore.

D8/D9 Field Hidden defines hidden field widgets

<input type="hidden" /> element widgets for these core field types:

  • decimal, float, integer
  • (plain)text, (plain)long text

Hidden in forms

  • add an ordinary numeric or (plain)text field to a content/entity type
  • go to the content/entity type's 'Manage form display' section
  • select the 'Hidden field' widget for the field

Hidden in content

  • (not rendered at all) go to the content/entity type's 'Manage display' section
    and drag the field to Disabled
  • (rendered hidden) not supported by core nor this module:
    do some custom css or theme work


D7 Field Hidden defines hidden field types

  • (plain)text, (plain)long text
  • integer, decimal, floating-point

D7 module maintenance only covers security issues and serious bugs

Deprecation issues are not serious bugs ;-)

Hidden in forms

Hidden fields are always rendered as <input type="hidden" /> elements in forms.

Optionally displayed in content

The value of a Field Hidden field defaults to be hidden in content - as in not rendered at all.
It may however be displayed in content, if another format than <Hidden> is selected in the content type's 'Manage Display' section.
The numeric types have exactly the same formatting options as ordinary numeric fields (the Number field module, e.g. prefix, suffix, thousand marker, decimal marker).

Validation and escaping

The values of all the field types are being validated and escaped according to coding standards, or stricter.
None of the text types allow for HTML/PHP input (nor output).
The only difference between text and long text is the database data type used - varchar versus text.

Tokens, Entity API, Migrate and Feeds integration

Makes Field Hidden fields usable in conjunction with Pathauto patterns, Rules, etc.

Similar modules

Drupal 8–11

Ask your assistant about Field Hidden

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Oct 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.1.2 Stable 8–11 Nov 29, 2024
2.1.1 Stable 8–10 Mar 28, 2024
2.1.0 Stable 8–10 Oct 13, 2023