Record Form


Static ex:
Note: When you are using this you cannot customize and add the fields you need. Everything will be added.
This needs to be added in record page of component uses force recorded.

<template>
    <lightning-record-form
        record-id={recordId}
        object-api-name={objectApiName}
        columns="2"
        mode="edit"
        layout-type="Compact">
    </lightning-record-form>
</template>

import { LightningElementapi } from 'lwc';
export default class MyComponent extends LightningElement {
    @api recordId;
    @api objectApiName;
}





Comments

Popular posts from this blog

Lightning Grid Custom Datatable

Application Event

Comparing Two Values Using Aura If