How to reset lightning-record-edit-form and get also get record id in Salesforce?
Sample Code: HTML: <template> <lightning-card title="Lead Creation"> <lightning-record-edit-form object-api-name="Lead" onsubmit={handleSubmit} onsuccess={handleSuccess}> <lightning-messages></lightning-messages> <lightning-input-field field-name="FirstName"></lightning-input-field> <lightning-input-field field-name="LastName"></lightning-input-field> <lightning-input-field field-name="Email"></lightning-input-field> <lightning-input-field field-name="Phone"></lightning-input-field> <lightning-input-field field-name="Company"></lightning-input-field> ....