function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leonardi KohLeonardi Koh 

lightning:inputField lookup does not have new record option?

I noticed that lightning:inputField does not appear to provide the option to create new record when it is showing a lookup field, unlike force:inputField

User-added image

So unlike the above example of force:inputField... lightning:inputField of the exact same field would show a similar lookup EXCEPT the 'New' part and this applies to both aura component as well as lightning web component.

Is there any way to have this functionality on the lightning:inputField?

Why not just use force:inputField you might ask.
Well that is because there is a bug involving force:inputField and aura:iteration which Salesforce never fixed for years already (and i doubt they'll ever fix it).

https://success.salesforce.com/issues_view?id=a1p3A0000008gDzQAI