Salesforce Decode
Salesforcedecode
Back to questions
LWCBeginnerrecord-pickerlookup

Use lightning-record-picker for lookup replacement

Real World Scenario

Custom lookup LWC reimplements search poorly; users want recent records and advanced filter.

Expected Answer

• lightning-record-picker standard lookup UX • Configure objectApiName displayInfo matchingFields filter • Handle selection change updating parent state • Recent records and search built-in • Mobile-friendly vs custom lookup modal • Required validation integration with forms

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Direct answer: lightning-record-picker standard lookup UX Also consider: Configure objectApiName displayInfo matchingFields filter In practice: Handle selection change updating parent state Keep the solution simple and well-documented for the team.

Architect Perspective

Platform record picker beats custom lookup unless exotic filter logic required.