I have this below lightning-record-edit-form. I want to get the value from Name lightning-input-field so that i can do some manipulation at javascript end.
Currenlty i am getting null on load of the form.
How to get the value.
HTML
<lightning-record-edit-form record-id={recordId} object-api-name="Test__c" onload={handleOnLoad}>
<lightning-input-field variant="label-stacked" class="name" field-name="Name"></lightning-input-field>
</lightning-record-edit-form>
JS -
handleOnLoad() {
let name= this.template.querySelector('.name');
alert(name);
}