function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sylvie SerpletSylvie Serplet 

lightning:recordForm does not display correctly on Home Page

Hi,
I am trying to implement the new lightning:recordForm for a component that need to diplay on Home page. The result does not look right (fields are packed on the left of the screen as below) on Home page but diplay correctly on another custom lightning tab.
Do I missed something or is it a bug?

User-added image

My code:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >
    
    <aura:attribute name="fields" type="List" default="Name,OwnerId,CSB_Name__c,Date__c,Overdue_Tasks__c,Unactioned_Emails__c,Comment__c"/>
    
    <lightning:card iconName="custom:custom19" title="Create New Workload" >
        <div class="slds-p-left_large slds-p-right_medium">	
            <lightning:recordForm aura:id="form"
                                  objectApiName="Workload_Register__c" 
                                  fields = "{!v.fields}"
                                  columns = "1"
                                  mode = "Edit"
                                  onsubmit = "{!c.handleSubmit}"
                                  onsuccess="{!c.handleSuccess}"                          
                                  onerror="{!c.onError}"
                                  />
        </div>
    </lightning:card>  
    
</aura:component>

Thank you in advance for your help.
Sylvie
Raj VakatiRaj Vakati
Your code looks correct for me and its working properly .. ? 

Are you using IE? If not, try to reload the page again and see .. 
Sylvie SerpletSylvie Serplet
No I am using Chrome. And it is definitively not working on the Home page.  
Raj VakatiRaj Vakati
Can you clear the browser history and try . for me its working without any issues ..


User-added image