Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: AI Logging (formerly part of AI core) 1.3.2 Minor update available for module ai_logging (1.3.2). Release: Swagger UI Info 8.x-1.4 Minor update available for module swagger_ui_info (8.x-1.4). Release: Synapse 2.0.7 Minor update available for module synapse (2.0.7). Release: Contact Mail 2.0.8 Minor update available for module contact_mail (2.0.8). Release: SynPay - Sber Ykassa Robokassa 2.0.12 Minor update available for module synpay (2.0.12). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Module Revived: Workbench Access 2.0.5 Module workbench_access updated after 17 months of inactivity (2.0.5).

Webform Views Options

2 sites No security coverage

Part of the Webform ecosystem · 157 projects

View on drupal.org

This module allows you to dynamically populate webform options like selects, radios, and checkboxes using Drupal's Views module. It enables the creation of cascading or dependent fields that update in real-time without requiring custom code. This eliminates the need for creating extra entities just to populate form options.

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.

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
May 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 May 2, 2026