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
SFDC12SFDC12 

help lwc

Hi everyone,when i clcik on the button it opens like a form able to perform save and cancel ,but record edit form object api name is different but  i need to place this component in account record page due to differ in obj it doesnot show the fields please help me

html:
<template>
<lightning-button label="show popup" onclick={handlePopup}></lightning-button>
   <div class="chart slds-m-around_medium" lwc:dom="manual"></div>
   
   <template if:true={modalPopUpToggleFlag}>
   
     <section
       id="modal"
       role="dialog"
       tabindex="-1"
       aria-labelledby="modal-heading-01"
       aria-modal="true"
       aria-describedby="modal-content-id-1"
       class="slds-modal slds-fade-in-open"
     >
       <div class="slds-modal__container">
         <header class="slds-modal__header">
           <button
             class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse"
             title="Close"
           >
             <svg
               class="slds-button__icon slds-button__icon_large"
               aria-hidden="true"
             >
               <use
                 xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#close"
               ></use>
             </svg>
             <span class="slds-assistive-text">Close</span>
           </button>
           <h2 id="modal-heading-01" class="slds-modal__title slds-hyphenate">
             Modal Header
           </h2>
         </header>
         <div
           class="slds-modal__content slds-p-around_medium"
           id="modal-content-id-1"
         >
           <div class="slds-p-bottom_large slds-p-left_large" style="width:500px">
             <lightning-record-edit-form
               id="recordViewForm"
               record-id={recordId}
               object-api-name="Bokking__c"
             >
               <lightning-messages></lightning-messages>
               <lightning-input-field field-name="Name"> </lightning-input-field>
               <lightning-input-field field-name="country__c"> </lightning-input-field>
               <lightning-input-field field-name="State__c">
               </lightning-input-field>
               <lightning-input-field field-name="price__c"> </lightning-input-field>
 
               <lightning-button
                 type="submit"
                 label="Update record"
                 class="slds-m-top_medium"
               >
               </lightning-button>
             </lightning-record-edit-form>
           </div>
         </div>
         <footer class="slds-modal__footer slds-modal__footer_directional">
           <button class="slds-button slds-button_neutral" onclick={handleSkip}>
             Skip This Step
           </button>
         </footer>
       </div>
     </section>
     <div
       class="slds-backdrop slds-backdrop_open modalBackdrops"
       id="modalBackdrops"
     ></div>
   </template>
js:
 export default class lwcTask extends NavigationMixin (LightningElement) {
  modalPopUpToggleFlag = false;
 
      handlePopup(){
          this.modalPopUpToggleFlag = true;
      }
 
      handleSkip(){
          this.modalPopUpToggleFlag = false;
      }
}
PriyaPriya (Salesforce Developers) 
Hey,

Kindly refer this document for rendering the component on the Account record page :- 

https://www.mstsolutions.com/technical/rendering-and-navigation-in-lwc/

If this helps you, kinldy mark it as the best answer.

Thanks