Activity Forums Salesforce® Discussions what is the difference between layoutType FULL and layoutType COMPACT in lightning component?

  • Piyush

    Member
    September 26, 2019 at 3:33 am

    Hi,

    LayoutType attribute to display all the fields defined on the given layout.

    Ex:-

    <lightning:recordForm
            recordId="001XXXXXXXXXXXXXXX"
            objectApiName="Account"
            layoutType="Full"
            mode="view" />
    
     <lightning:recordForm
            recordId="001XXXXXXXXXXXXXXX"
            objectApiName="My_Contact__c"
            layoutType="Compact"
            columns="1"
            mode="readonly" />

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos