Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). editoria11y 3.0.1 Minor update available for module editoria11y (3.0.1). geofield_map 11.1.9 Minor update available for module geofield_map (11.1.9). domain 3.0.0 Major update available for module domain (3.0.0). ai 1.2.15 Minor update available for module ai (1.2.15). ai 1.3.4 Minor update available for module ai (1.3.4). leaflet 10.4.7 Minor update available for module leaflet (10.4.7).

Populate Webform options (selects, radios, checkboxes) dynamically using the Views module. Create cascading, dependent dropdowns that react in real-time without custom code or messy database bloat.

Webforms frequently need to display dynamic data—such as a list of content, taxonomy terms, or commerce products. While Webform natively supports basic entity references, it falls short when you need complex filtering, extraction of multi-value fields, or real-time dependent fields (e.g., selecting a "Make" updates the "Model" dropdown). Webform Views Options bridges this gap by turning standard Webform option elements into dynamic, Views-driven data engines.

Features

This module is built on a two-tiered architecture designed for both basic site builders and power users:

  • Dynamic View Loading: Populate standard Select, Checkboxes, or Radios elements with results from any Drupal View.
  • Cascading Dependencies: Create "daisy-chained" or dependent fields. When a user selects an option in a "Parent" element, the module uses native Drupal Form API #ajax to pass that value to your View as a Contextual Filter, instantly repopulating the "Child" element in real-time.
  • No Entity Bloat: Stop creating fake entities just to generate Webform radios. This module can pull from flat multi-value fields natively via Views.
  • Native Webform Support: Because this module extends existing Webform elements rather than creating a proprietary plugin, all native Webform features (like "Other..." textfields, randomization, and validation) still apply to your View-generated options.

Common Use Cases:

  • Automotive: Cascading dropdowns for Make → Model → Year.
  • Real Estate: Dependent dropdowns for State → County → City.
  • Donations & E-commerce: Showing a dynamic list of donation amounts or product variations based on a previously selected campaign.

Post-Installation

Once installed, there is no global configuration page. The functionality is injected directly into your Webform element settings.

  1. Create a standard Drupal View. Ensure your View outputs the specific fields you want to use as the internal Key (e.g., ID) and the human-readable Label (e.g., Title).
  2. Go to your Webform and add a standard option-based element (Select, Radios, or Checkboxes).
  3. In the element's configuration drawer, scroll down to the new Views Options Population fieldset.
  4. Select your Target View and Display, and type in the machine names of your Key and Label fields.
  5. (Optional): To create a dependency, enter the machine name of another element on the form into the Parent Element Key field. Ensure your View is configured to accept a Contextual Filter!

Additional Requirements

  • Webform (Drupal Core's Webform module)
  • Views (Drupal Core)
  • No external JS libraries are required. It relies entirely on Drupal's native Form API.

Similar projects

  • Webform Dependent Dropdown: This module is strictly limited to hierarchical Taxonomy terms. Webform Views Options allows dependencies based on any data the Views module can query.
  • Webform Views: Typically used to embed an entire View (like a grid or table) into a Webform. Webform Views Options specifically extracts data to populate the #options array of standard form elements.
  • Webform Remote Select: Requires you to build REST JSON endpoints and introduces HTTP loading delays. Webform Views Options executes queries internally via Views and relies on native #ajax, providing a much faster, server-validated experience.

Activity

Total releases
1
First release
May 2026
Latest release
6 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev May 2, 2026