0

I want to create a custom header with my custom field, but with this code, I can't see the fields, they are not visible, what is the error in my code ?

<template>
    <div class="myheader slds-page-header">
        <div class="slds-page-header__row">
         
            <div>
                <lightning-input-field field-name="Statut__c"> </lightning-input-field>
                <lightning-input-field field-name="Name"> </lightning-input-field>
                <lightning-input-field field-name="Profit_Center_Formula__c"> </lightning-input-field>
                <lightning-input-field field-name="Station_Type__c"> </lightning-input-field>                  
    </div>

</div>
</div>

</template>

1 Answer 1

1

lightning-input-field must be inside a lightning-record-edit-form in order to be visible.

1
  • thanks , i added a lightning-record-edit-form and it worked , thanks Commented Jan 26, 2022 at 9:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .