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 { LightningElement, api } from 'lwc';
export default class MyComponent extends LightningElement {
    @api recordId;
    @api objectApiName;
}





Comments

Popular posts from this blog

Delete Multiple Records -Custom Datatable

Dynamic Custom Datatable using dual List

Dynamic Standard Datatable Using Fieldset