0

I am doing the following code

<lightning:recordEditForm recordId="{!v.recordId}" objectApiName="Opportunity">
                  <lightning:messages />
                  <lightning:inputField fieldName="Point_Code__c" />
                  <lightning:inputField fieldName="Opportunity.Contact__r.FirstName" />
                  <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" />
</lightning:recordEditForm>

At the moment it only shows me the Point_Code__c because that field is in Opportunity but the FirstName does not show anything

The problem is that I think SalesForce doesn't like to use "Contact__r.FirstName". My question is, how can I call a reference on that field to bring fields from "Contact" object to "Opportunity"

looks like this:

enter image description here

1 Answer 1

1

you cannot reference relationships in lightning input fields, from the docs:

The fields specified must be associated with only one object.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .