Loading

Using "lightning-input-field" in Lightning Web Components Does Not Show the New Advanced Lookup Search Interface

Udgivelsesdato: Oct 12, 2026
Beskrivelse

In Spring '25, Salesforce introduced an updated user interface (UI) for Advanced Lookup Search.

When you use the lightning-input-field component in a Lightning Web Component (LWC) to render lookup fields on a record form, the new Advanced Lookup Search UI does not always appear. Whether the new or old UI is displayed depends on whether the logged-in user has the CREATE permission on the object related to the lookup field.

The two possible UI states are:

  • New Advanced Lookup Search UI (LWC): Appears when the user does NOT have CREATE permission on the related object.
  • Old Advanced Lookup Search UI (Aura): Appears when the user HAS CREATE permission on the related object.
Løsning

This article answers the question: why does the lightning-input-field component in a Lightning Web Component (LWC) show the older Aura-based Advanced Lookup Search UI instead of the new one? This behavior is working as designed.

Why the Old Advanced Lookup Search UI Appears

The lightning-input-field component in a Lightning Web Component does not support creating new records directly from the lookup field dropdown menu. The new Advanced Lookup Search UI (LWC) also does not support inline record creation. As a result, Salesforce falls back to the older Aura-based Advanced Lookup Search UI when the logged-in user has CREATE permission on the related object, because that UI does support creating new records.

For reference, the lightning-input-field Component Reference states:

Creating a new record from the lookup field's dropdown menu is currently not supported.

When Each Advanced Lookup Search UI Appears

  • If the logged-in user has CREATE permission on the related object, the old Advanced Lookup Search UI (Aura) appears.
  • If the logged-in user does not have CREATE permission on the related object, the new Advanced Lookup Search UI (LWC) appears.
Vidensartikelnummer

004141482

 
Indlæser
Salesforce Help | Article