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?

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Developer Tools
  • chart icon15 sites report using this module
  • Created by adaddinsane on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases