Not empty values when using with Inline Entity Form

Created on 4 July 2025, 23 days ago

Problem/Motivation

When using Entity Browser combined with Inline Entity Form, after saving the new created node the fields are not emptied and status message that indicate correct save are not triggered

Steps to reproduce

Install both Entity Browser and Inline Entity Form
Enable entity_form submodule
Create an Entity Browser with two widgets, the view one and the entity form
Create a content type with a field that reference another content and use entity browser as form widget
Try to add a new content via the entity browser previously created
After submitting new entity the field doesn't empty and no success message are shown

Proposed resolution

Cleanup fields after the submission and show success message after saving new content, I think the latter can be done by adding a message into the submit() function inside the Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget\EntityForm.
I will continue to investigate how to mitigate the first bug.

Thanks

🐛 Bug report
Status

Needs work

Version

2.13

Component

Widget plugins

Created by

🇮🇹Italy cicciobat Italy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024