Salesforce Lightning Web Component

Salesforce

How to get field values in onsuccess method of lightning-record-edit-form?

Sample Code: LWC HTML: <template> <div class="slds-box slds-theme_default"> <lightning-record-edit-form record-id="0013i00000362blAAA" object-api-name="Account" onsuccess={handleSuccess}> <lightning-messages></lightning-messages> <lightning-output-field field-name="Name"></lightning-output-field> <lightning-input-field field-name="Industry"></lightning-input-field> <lightning-input-field field-name="Description"></lightning-input-field> <lightning-input-field field-name="Rating"></lightning-input-field> <lightning-button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update"> </lightning-button> </lightning-record-edit-form> </div> ....

Salesforce

lightning-record-edit-form and lightning-record-view-form example Salesforce LWC

Sample Code: Aura Component: <aura:component implements="force:lightningQuickAction,force:hasRecordId"> <c:caseEscalation recId="{!v.recordId}"/> </aura:component> Lightning Web Component(LWC): LWC HTML: <template> <div class="slds-m-around_medium"> <template if:true={newBool}> <lightning-record-edit-form object-api-name="Case" onsuccess={handleCreate} record-type-id="0123i000000IC1dAAG"> <lightning-messages></lightning-messages> <div class="slds-grid slds-wrap"> <div class="slds-col slds-size_1-of-2"> ....