lightning:recordForm is not supporting dependent lookup filter field - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
2,630  Points
Open
Idea has been posted. Give it an upvote or downvote.

lightning:recordForm is not supporting dependent lookup filter field

Lightning Development

When we are creating a record using lightning:recordForm and the object on which record is being created has any dependent lookup filter field, then the lookup will not work.

Steps to replicate:-
  1. Create a custom object.
  2. Add two fields - Contact and Account.
  3. Add a filter so that the Contact field only shows contacts from the Account Name field selection on the same record.
  4. Now create a lightning component with lightning:recordForm passing the objectApiName as the custom object created in Step 1.
  5. Contact lookup only shows the contact whose account is null, eventhough you select an account in account lookup.

This is a common issue regardless of the lightning component you use to create a new record. This issue can be encountered when you use:-
  • lightning:inputField in lightning:recordEditForm
  • lightning:recordForm
  • force:inputField
  • force:recordData

The only exception where dependent lookup filter field works fine is force:createRecord

Much needed fix.
 

Merge Idea · Flag

  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.