Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Webform Entity Builder

Security covered

Part of the Webform ecosystem · 161 projects

View on drupal.org

This module provides support for creating and editing entities from webforms.

This module does nothing on its own.

WebformHandler

We provide a webform handler that is attached to the webform and, when the form has been completed, it compiles the data and launches a delayed event using the event_scheduler module.

The delayed event means that the work on constructing or updating the entity from the webform data takes place after the current page has been sent to the user. It provides better UX with less delay.

The webform itself has to have a field called "_build_entity" which defines the entity type/bundle being created, without it the system won't know what to build (and won't try). If the form also contains and entity ID field it will use that to select the entity for editing.

EntityBuilder

The event is picked up by this module which finds a matching EntityBuilder plugin and then runs it on the data from the webform to process the webform data into a form that can be used to create the entity.

Then it tries to create/edit and save the entity. Full information is provided in the logfile if something doesn't work.

The original webform submission is deleted if the create/edit process succeeds.

Debugging

  • Does your webform have an entity type field? A hidden (or value) field called entity_type which gives the type of the entity to be created?
  • Is there an actual plugin for the right type to perform the build process?

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

Releases

Version Type Core Release date
2.0.0-rc3 Pre-release Apr 8, 2023