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). 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. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Content Type Webform Creation

Security covered Drupal 10–11
View on drupal.org

This module automatically generates webforms from existing content types, mapping fields to corresponding Webform elements. This saves time and ensures consistency by eliminating manual form creation.

Creating a webform from an existing content type in Drupal is usually a manual, repetitive process—opening Structure › Webforms, adding a new webform, and then re-creating each element by hand to mirror fields that already exist on the content type: the same labels, the same required flags, the same taxonomy or media references, all typed in again from scratch.

Content Type Webform Creation removes that duplication. Pick a content type, choose which fields to include, and the module automatically maps each one to the matching Webform element—text fields to textfields or textareas, booleans to checkboxes, entity references to selects or autocompletes, media and file fields to file uploads, and so on—then generates a ready-to-use webform in a single flow.

The module can also update a webform it previously generated. Pick it from a dropdown instead of typing a machine name, and the fields already present in that webform are pre-selected so nothing is silently dropped if you forget to re-check them.

Unlike some webform generators, this module does not call out to any AI service—the field-to-element mapping is deterministic, based entirely on your site's existing field configuration, so the same content type always produces the same result.

Features

  • Generate a webform from any content type. Select the content type and the fields to include; everything else is handled automatically.
  • Create new or update existing. Build a brand-new webform, or pick an existing one from a dropdown to update in place—its id and current elements are reused rather than duplicated.
  • Automatic field type mapping, including:
    • Text / long text → Textfield / Textarea
    • Boolean → Checkbox
    • Number / decimal → Number field
    • Email → Email field
    • List (allowed values) → Select dropdown
    • Entity reference → Select (taxonomy terms) or Entity autocomplete (other entities)
    • Media reference (image / document / video) → File upload, with matching file extensions
    • Image / File → File upload
    • Date / Datetime → Datetime picker
    • Link → URL field
  • Preserves required field validation. Required fields on the content type stay required on the generated webform.
  • Field pre-selection on update. Fields already present in the target webform are checked automatically, so updating a webform never accidentally drops existing elements.
  • Machine name assistance. When creating a new webform, the id auto-suggests from the title as you type and stays locked behind an "Edit" link until you choose to override it—the same UX Drupal core uses for content types and views.
  • Preview before saving. A summary table (field, mapped element, required) plus a live, read-only rendering of the generated elements is shown before anything is written—nothing is created or changed until you confirm.

The module is ideal for teams that already model their content carefully and want a matching intake, feedback, or request form without rebuilding those fields a second time by hand.

Post-Installation

  1. Install and enable the Webform module (a hard dependency of this module).
  2. Grant the core Administer site configuration permission to whichever roles should be able to generate or update webforms.
  3. Navigate to Configuration › Content › Webform Generator (/admin/config/content/webform-generator).
  4. Choose a content type, then either enter a title for a new webform (the id is suggested automatically) or check "Update an existing webform" and pick one from the dropdown.
  5. Select which fields to include, review the mapping summary and live preview on the next screen, and confirm to generate the webform.

You'll be redirected to the generated (or updated) webform's Edit page for review and any further customization.

Additional Requirements

  • Webform — required; the module generates and updates Webform entities directly.

Certain content type field types only map meaningfully to a Webform element when their owning core module is enabled:

Module Capability Enabled Taxonomy Taxonomy term reference fields map to a select list populated with real term options Media Media reference fields map to file upload elements with extensions matching the referenced media type (image, document, or video) Datetime Date and datetime fields map to a datetime picker Link Link fields map to a URL element Image / File Image and file fields map to file upload elements
  • Webform, required for this module to function at all.
  • Media, if your content types use media reference fields you want mapped to file uploads.

Related Projects

  • AI Webform Generator takes a complementary approach—generating and updating Webforms from a plain-English description via the AI module, rather than from an existing content type's field structure.

If you know of another module that generates Webforms from existing content architecture, we'd love to hear about it so we can acknowledge related work within the Drupal community.

Support

Found a bug or have a feature request—another field type to map, a different update behavior, anything else? Please open an issue on the project page.

Community Documentation

Community tutorials, screen casts, and implementation write-ups are welcome and will help new users get started quickly.

Content Type Webform Creation turns the fields you've already modeled into a ready-to-use webform in minutes, keeping labels, validation, and structure consistent across your site instead of rebuilding them by hand.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 10–11 Jul 24, 2026
1.0.1 Stable 10–11 Jul 20, 2026
1.0.0 Stable 10–11 Apr 17, 2026