You need to sign in to do that
Don't have an account?
Leonardi 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
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
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