//Reset the fields to create a new record
//This is showcased in the LWC DispatchRefreshEvent

const inputFields = this.template.querySelectorAll(
    'lightning-input-field'
);
inputFields?.forEach((field) => field.reset());