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

Free 5 Day Salesforce Challenge!

Video in

To access the signup form head over to www.talentstacker.com/Salesforce TalentStacker Podcast Salesforce Episode: https://talentstacker.libsyn.com/how-to-earn-60k-100k-a-year-within-6-months-without-a-college-degree-say-what-salesforce-career-development-path-with-bradley-rice Do you already have a job as a Salesforce Professional and…