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
Bharath VikkurthiBharath Vikkurthi 

Override Standard Vf page In Lightning

Hi All
I created two objects with lookup, If i click Edit button in Detail Page(output page) and modify some fields(Loan type Picklist) in same object1 then i click save button corresponding object2 related records will display.Here it is not working 

<apex:page lightningStylesheets="true"  Standardcontroller="Loan" extensions="Refresh" sidebar="false" showHeader="true" showChat="true"   >
     <apex:tabPanel >
         <apex:tab label="Loan detail">
             <apex:detail relatedList="false" title="true"/>
         </apex:tab>
         
         <apex:form >
    <apex:pageBlock title="Employee"  mode="edit">
    <apex:pageBlockButtons >
        <apex:commandButton action="{!save}" id="saveButton" value="Save" style="display:none"/>
    </apex:pageBlockButtons>
    <apex:pageBlockSection columns="1">
        <apex:pageBlockTable value="{!emp}" var="a">
            <apex:column value="{!a.loan type}"/> <br/> 
        <apex:column value="{!a.Loan name}"/> <br/> 
             <apex:column value="{!a.City}"/><br/><br/>
             
        </apex:pageBlockTable>
        </apex:pageBlockSection>
    </apex:pageBlock>
    </apex:form>
    </apex:tabPanel>
    
</apex:page>