Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Field States UI

2,201 sites Security covered
View on drupal.org

This module provides a user-friendly interface for configuring the Field States API, allowing site builders to control field visibility and behavior based on the values of other fields. This makes it easier to create dynamic forms without needing to write custom PHP code.

Field States UI allows sites builders with minimal PHP/Dev skills to configure the Field States API. This lets you configure a field to for example hide if another field has a certain value or hasn't been filled. While doing it via PHP can be more powerful the UI can be very handy and speed development.

Requirements/Versions

This module requires no modules outside of Drupal core.

  • 3.x Recommended/Supported version. Requires Drupal 9.2+/10+.
  • 8.x-2.x Recommended version for old Drupal installs, but updating heartily recommended

Installation

Install as you would normally install a contributed Drupal module. For further
information, see
Installing Drupal Modules

Usage

Configure a field

  1. Configuration can be accessed per field instance wherever that field
    display is usually configured. For example fields on the Node type Article
    would be at /admin/structure/types/manage/article/form-display.
  2. Use the contextual gear icon to edit the field.
  3. There is now a Manage Fields States fieldset, select a new state, configure,
    click 'Add' and Save.
  4. Save the Form Display

Field Types/Widgets

Due to various array structures, specific widgets/fields need to handled
specifically for each field at least. Many fields are the same structure
for all widgets and are not documented except in the code. Unrecognized
widgets and field types will attempt to be handled but some will be logged
to the dblog in cases that Field States UI is unsure. Please report those
to the issue queue.
Currently more than 50 field widgets covering more than 30 fields type from
core and various contrib modules are supported.

FAQ

Any questions? Ask away on the issue queue or email: Nick Dickinson-Wilde - [email protected].

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
1
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
4.x-dev Dev 11 Sep 29, 2025