You need to sign in to do that
Don't have an account?
Jeffrey Cheung
lightning:inputField is not working with lookup field
A Negotiation object looks up to an Opportunity. The Opportunity Id is in the event but it is gone in the trigger, hence the required field missing error.
This is a bug in lightning:inputField with Master-Detail relationship. The same error has been rasied 3 months ago already: https://salesforce.stackexchange.com/questions/207479/anyone-got-a-lightninginputfield-working-for-a-lookup/207935
Sadly Salesforce doesn't care about this bug so it is not fixed.
The only solution is:
1. Check "Allow reparenting" checkbox for the Master-Detail field on the child object
2. Change the relationship to a lookup
All Answers
This is a bug in lightning:inputField with Master-Detail relationship. The same error has been rasied 3 months ago already: https://salesforce.stackexchange.com/questions/207479/anyone-got-a-lightninginputfield-working-for-a-lookup/207935
Sadly Salesforce doesn't care about this bug so it is not fixed.
The only solution is:
1. Check "Allow reparenting" checkbox for the Master-Detail field on the child object
2. Change the relationship to a lookup