There is a known uncommon behavior with Salutation
field on Contact
object while displaying it using lightning:recordEditForm
. Since it is a part of the compound Name
field on Contact
. The workaround is shown here.
Also it is reported as a known issue, an old known issue since Summer '17, but still is not fixed.
This workaround applied for Contact is not working for Person Account.
<lightning:recordEditForm aura:id="recordEditForm" objectApiName="Account">
<lightning:inputField aura:id="input-field" fieldName="Name" />
<lightning:inputField aura:id="input-field" fieldName="FirstName" />
<lightning:inputField aura:id="input-field" fieldName="LastName"/>
<lightning:inputField aura:id="input-field" fieldName="Salutation" />
</lightning:recordEditForm>
Results in
How to display Salutation
field on Person Account using lightning:recordEditForm
?