Example configuration with the keys AF, AX, and AL set to be disabled.

This project is not covered by Drupal’s security advisory policy.

Purpose

Add configuration options under Select Options components to allow form editors to retain but disable specific options.

Motivation/Use Case

When using a Webform to collect T-shirt preferences, a specific T-shirt size may run out - if you remove the size option from the Select Options, you will lose data from previous submissions. Instead, you can use this module to disable that size option and prevent future visitors from selecting it.

Configuration/Use

After enabling the module, edit any Select Options component and specify the keys (not values), one per line, of options to be disabled.

For example, using the pre-built Countries list, you would specify "US" and "GB" and not "United States" or "United Kingdom".

Project information

Releases