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

Dynamic Custom Datatable using dual List

Application Event

Dynamic Standard Datatable Using Fieldset