LightningRecordFormExample.cmp: (Api version: 45.0)

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global">

    <aura:attribute name="fieldsList" type="List" default="[Name,Phone,Industry]" />

    <lightning:card title="Edit Account" iconName="standard:account">
        <lightning:recordForm   recordId="0013700000Y1ABaAAN"
                                onload="{!c.handleOnLoad}" />           


I dropped this component on Account page layout above the standard Record Detail component.We can see that standard record detail component displays Name and Industry fields but the custom component I created with lightning:recordForm is not showing.

enter image description here

  • if you add a layouttype does it change anything (i know its supposed to be optional)? – glls Apr 8 '19 at 2:12
  • @glls adding layoutType = "Full" showing all fields including Name and Industry fields. – javanoob Apr 8 '19 at 2:15
  • thats odd =/ , i would have expected them to show up as well initially – glls Apr 8 '19 at 2:21

Changed the below line

<aura:attribute name="fieldsList" type="List" default="[Name,Phone,Industry]" />


<aura:attribute name="fieldsList" type="List" default="['Name','Phone','Industry']" /> and it works fine now.

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.