Reference field in instance form fail for different cases

Created on 3 September 2025, 3 days ago

Problem/Motivation

In some cases the instance form with UI Patterns form fail when using a reference form.
The same action do not fail with Layout builder.

Steps to reproduce

With theme Display Builder test theme (test theme to enable).
Enable display builder on article default view.
Empty all fields for test and save.

Error ui patterns but ok:

  1. From libraries, add Authored by
  2. Click to have instance form > pick source: [Field item] -> Referenced [Entity]
  3. Pick source: [Entity] -> [Field]
  4. Error dblog: ui_patterns Error Missing entity from context for node: The 'entity:node' context is required and not present.
  5. Form fail, need to manually update, reload, then Field is available
  6. Select Field > Name
  7. Same error dblog, but can be saved and display is ok (?)

Ok with prop, fail with slot:

  1. From libraries, add Authored by
  2. Click to have instance form > pick source: [Field item] -> Referenced [Entity]
  3. Pick source: [Field] Formatter
  4. Formatter: Component per item
  5. Component: Test simple
  6. Props : Label [Field item] Integer value
  7. Update ok, view ok
  8. Slots : Slot 1 [Field item] Integer value
  9. Update fail and reset

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

display_builder_entity_view

Created by

🇫🇷France mogtofu33

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024