Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

List Widget Alter

No security coverage Under active development

This module provides a customizable widget for list fields, allowing administrators to change how options are displayed on forms. You can hide options, provide different labels for each option, and choose between select lists, checkboxes, or radio buttons. This flexibility helps tailor the presentation of field options to specific contexts without altering the field's core definition.

This module creates a customizable Field Widget for text, numbers, and float lists.
It allows the admin to alter the field options by providing a separate label for each one, or hide it all together.

Features

Sometimes the list fields are reused in different places from a site, and the labels of the options (field definition level) don't always make sense everywhere the field is used.
This widget allows the administrators to present the options differently in a form display level.

- You can opt to show/hide options
- You can change the label the end user sees for each option
- The module supports select lists, checkboxes and radio buttons

When an option is disabled, it will be removed from the form containing the field. If there was previous content with the removed option, the option will still be available until changed, but a notice message will be added to the label. This text is also customizable, at the modules configuration page.

Post-Installation

Go to your entity's form display and select the Widget "Altered list" for your list field. Then click on the Configuration icon, and set the desired configuration.

Choose how the field should be displayed, if as a select list or checkboxes/radio buttons (depends on the cardinality of your field), and mark all available options. You can alter the labels in the specified fields.

Save the changes and the form.

Additional Requirements

No aditional requirements.

No recommended modules/libraries.

Similar projects

None that I could find.

Supporting this Module

If you find an issue, report it. If you can help solve one, you're welcome to.

Community Documentation

None yet.

Ask your assistant about List Widget Alter

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
1
Tracked since
Oct 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 9–10 Oct 4, 2023