This project is not covered by Drupal’s security advisory policy.
This module provides an element type that can be added to a webform that embeds an entity form into the webform, saves/updates the entity with the data on form submission, and provides an entity reference as the element value in the submission.
Using the entity reference settings, you can select what type of entity and what bundle the entity should be.
You can also choose to have the element load the first available existing entity (based on your sort settings), optionally also only those owned by the user submitting the form.
Note: users must have access/permissions to create and update entities or the element will not work.
Configuration
Add element of type "Inline entity form".
Enter title.
If you want to create a new entity each submission, change "Load existing entity if found" to "No".
If you want to load the entity for that user (e.g. a node created by the user, a Profile entity owned by the user), then leave "Owned by logged in user" as "Yes."
Change the form mode if you would like. You will need to have saved the element first to load the form modes for the selected entity type.
Select the entity type under "Type of item to reference".
Select the reference method "Default".
Select the bundle type, e.g. content type.
Select sort settings if there would be multiple existing entities you want to load; it will pick the first one, so you can sort accordingly.
Form will then show the entity form and load an existing entity if set up and available.
Project information
- Project categories: Site structure
- Ecosystem: Webform, Inline Entity Form
1 site reports using this module
- Created by maxwellkeeble on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
