<lightning-record-edit-form object-api-name="Contact">
       <lightning-input-field field-name='AccountId' value="xxxxx"></lightning-input-field>
       <lightning-input-field field-name='LookUpFilter__c' ></lightning-input-field>


The look up filter doesn't fetch any values even though "AccountId" is set, which is the basis for filtering look up records. Whats the best way to achieve this.

1 Answer 1


As you've observed, the built-in component needs a record to work with. However, there are open source versions (try searching for "lwc lookup field github") that you could modify to work without a record.

Check out this-


And follow this for your Reference --


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.