Not populating values to child form from parent form

Hi Team,

I have this parent form with this dropdown when value selected need to get populated in the field called StudentName in child form.

Code in parent form.
/make fd available in browser's console/
window.fd = fd;

Code in child form.

fd.spRendered(function () {
const parentForm = window.top.fd;
fd.field('StudentName').disabled = true;

    //Set field values with the values from the parent on form load
    fd.field('StudentName').value = winodw.top.fd.field('DropDown1').value;

});

Thanks in advance
Navpreet

Thanks . I fixed this . So not sure how to close this call.