I run into a issue when using lightning:recordEditForm to together Account Name info in an org where Salesforce Person Account is turned on. I was trying to bind to a business account and edit the account Following is the code:
<aura:component implements="force:appHostable"> <!--recordId is a business account Id--> <!--recordTypeId is the business account record type Id--> <lightning:recordEditForm objectApiName = "Account" recordId="0013C0000094ah2" recordTypeId="0123C000000Li7hQAC"> <lightning:inputField fieldName="Name"/> </lightning:recordEditForm> </aura:component>
My expected result is that the UI should only show Account Name field instead of three fields like salutation, firstname, lastname. since that was a business account Id I bind, not salesforce person account.
This seems like a bug on force:recordEditForm. Does any one run into same issue, and kindly provide some guidance on walk around? OR any salesforce docs about this issue (I didn't find any useful references myself).
Your help is apperciated!